Class DS.InternalModel
Module:
ember-data
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.