Class to define a one to many association.


NOT to be instantiated directly Its just documented for reference.

Adds the following methods to each model.

Extends

Constructor

Defined associations/oneToMany.js Source
  1. define(_Association, {

_preRemove Function Private


Defined associations/oneToMany.js

Middleware called before a model is removed.
This is called in the scope of the model

Arguments Source
  1. function (next,model){
  2. this.removeAllItems(model).classic(next);
  3. }

Documentation generated using coddoc.