In my application, the data in one model is "meta" in nature and defines the attributes in another model. Imagine retrieving a database, where the column definition data determines the attributes of each row.
I can reopen()
the row model so long as I have not yet requested rows from the store. A subsequent call to store.findAll('row')
retrieves data with all the attributes defined.
If however I have already called store.findAll('row')
prior to Column.reopen()
, then I cannot find a way cause the store to acknowledge the new attributes.
I have tried without success: - unloading all the rows and finding them again - calling peekAll/update on the rows already in the store - calling Ember.defineProperty()
on the row model instead of reopen. Both existing and subsequent new rows do not get the new attributes.
Aucun commentaire:
Enregistrer un commentaire