Class DS.InternalModel
InternalModel
is the Model class that we use internally inside Ember Data to represent models.
Internal ED methods should only deal with InternalModel
objects. It is a fast, plain Javascript class.
We expose DS.Model
to application code, by materializing a DS.Model
from InternalModel
lazily, as
a performance optimization.
InternalModel
should never be exposed to application code. At the boundaries of the system, in places
like find
, push
, etc. we convert between Models and InternalModels.
We need to make sure that the properties from InternalModel
are correctly exposed/proxied on Model
if they are needed.
adapterDidCommit
Defined in packages/ember-data/lib/system/model/internal-model.js:605
If the adapter did not return a hash in response to a commit, merge the changed attributes and relationships into the existing saved data.