Docs4dev
Docs
Docs4dev
  • Tools
  • Privacy
  • GitHub

Search

Loading search index…

No recent searches

No results for "Query here"

  • to select
  • to navigate
  • to close

Search by FlexSearch

On this page

On this page
ember / 2 / classes / ds.model.html

Class DS.Model

Extends: Ember.Object
Uses: Ember.Evented
Defined in: addon/-private/system/model/model.js:76
Module: ember-data

The model class that all Ember Data records descend from. This is the public API of Ember Data models. If you are using Ember Data in your application, this is the class you should use. If you are working on Ember Data internals, you most likely want to be dealing with InternalModel

Methods

  • belongsTo
  • changedAttributes
  • deleteRecord
  • destroyRecord
  • didDefineProperty
  • eachAttribute
  • eachRelatedType
  • eachRelationship
  • eachTransformedAttribute
  • hasMany
  • inverseFor
  • reload
  • rollbackAttribute
  • rollbackAttributes
  • save
  • serialize
  • toJSON
  • typeForRelationship
  • unloadRecord

Properties

  • adapterError
  • attributes
  • dirtyType
  • errors
  • fields
  • hasDirtyAttributes
  • id
  • isDeleted
  • isEmpty
  • isError
  • isLoaded
  • isLoading
  • isNew
  • isReloading
  • isSaving
  • isValid
  • modelName
  • relatedTypes
  • relationshipNames
  • relationships
  • relationshipsByName
  • transformedAttributes

Events

  • becameError
  • becameInvalid
  • didCreate
  • didDelete
  • didLoad
  • didUpdate
  • ready
  • rolledBack

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/2.18/classes/DS.Model

  • Privacy Policy
  • 蜀ICP备14021783号-6
  • Brought to you by Docs4dev