home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
1.13
  • Packages
    • ember-data
  • Namespaces
    • DS
    • Ember.Date
  • Classes
    • DS.AbortError
    • DS.ActiveModelAdapter
    • DS.ActiveModelSerializer
    • DS.Adapter
    • DS.AdapterError
    • DS.AdapterPopulatedRecordArray
    • DS.BooleanTransform
    • DS.BuildURLMixin
    • DS.DateTransform
    • DS.EmbeddedRecordsMixin
    • DS.Errors
    • DS.FilteredRecordArray
    • DS.FixtureAdapter
    • DS.InternalModel
    • DS.InvalidError
    • DS.JSONAPIAdapter
    • DS.JSONAPISerializer
    • DS.JSONSerializer
    • DS.ManyArray
    • DS.Model
    • DS.NumberTransform
    • DS.PromiseArray
    • DS.PromiseManyArray
    • DS.PromiseObject
    • DS.RESTAdapter
    • DS.RESTSerializer
    • DS.RecordArray
    • DS.RootState
    • DS.Serializer
    • DS.Store
    • DS.StringTransform
    • DS.TimeoutError
    • DS.Transform

Class DS.InternalModel


Defined in: packages/ember-data/lib/system/model/internal-model.js:42
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.


Methods

adapterDidCommit

Module: ember-data

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.

On this page


Methods

  • adapterDidCommit
Team Sponsors Security Legal Branding Community Guidelines
Twitter GitHub Discord Mastodon

If you want help you can contact us by email, open an issue, or get realtime help by joining the Ember Discord.

© Copyright 2025 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue Created with Sketch.