Eject from the store the item of the specified resource that has the given primary key. Ejection only removes items from the data store and does not attempt to destroy items via an adapter.
Returns the ejected item if it was ejected.
|resourceName||string||The name of the resource to use. Unnecessary if using the resource directly.|
|id||string or number||The primary key of the item to eject.|
|options.notify||boolean||Whether to call the |
You can call
DS#eject(resourceName, id[, options])
Resource#eject(id[, options])- Where Resource was created by
Instance#DSEject([, options])- Where Instance is an instance of a Resource. Note this ejects the item from the store, but you still have a reference to the object, so the object won't get garbage collected just yet.
Updated less than a minute ago