Class ModelManager

Model Manager class that provides the actual database operations for models

class ModelManager(modelDef)
Arguments:
  • modelDef (Object) – The model definition. See Model.

Methods

save

Saves a model instance to the db. Called by Model’s save.

ModelManager.prototype.save(modelInstance, onComplete)
Arguments:
  • modelInstance – The model instance to save
  • onComplete (Function) –
    callback function that is called when instance has been
    saved. Takes the saved instance as parameter.

See also

Model