ember.js - Setting and EmberJS models owner with a simple ID -


i have code tries set owner of model instance setting id of owner follows:

tablejson = {id: 1, room_id: 1}  rec = app.table.createrecord(); rec.setproperties(tablejson); app.store.commit(); 

i using localstorage ember adapter.

it not set room on table model. model specifies table belongs room.

when call table.get('room'), returns null.

any ideas?


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -