Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-829

Add a shorthand for fetch() adapter

    Details

    • Story Points:
      5

      Description

      If I get a reference to an ID would be nice to have a shortend like

      var model = Alloy.createModel("...");
      model.fetch(

      { id: 123 }

      );

      instead of have to provide a full sql statement

      I suggest an implementation approach like this one
      https://github.com/viezel/napp.alloy.adapter.restsql#extended-sql-interface
      which would make querying the database more object friendly.

      Thanks, Luca

      (for original Q&A see http://developer.appcelerator.com/question/157222/fetch-single-record-by-id-via-alloy-models)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skypanther Tim Poulsen
                Reporter:
                morahman Motiur Rahman
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration