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

How to calculate SNR of signals in MATLAB? -

Php - Delimiter must not be alphanumeric or backslash -

Delphi interface implements -