viezel / napp.alloy.adapter.restapi

RestAPI Sync Adapter for Titanium Alloy Framework
197 stars 102 forks source link

Error after change idAttribute #31

Open artur79 opened 10 years ago

artur79 commented 10 years ago

I've set idAttribute to uuid. When trying to fetch data:

var court = Alloy.createModel('court', {"uuid": args["uuid"]});
court.uuid = args["uuid"];

court.fetch();

I have an error:

[ERROR] V8Exception: Exception occurred at alloy/sync/restapi.js:1: Uncaught TypeError: Cannot read property 'uuid' of null