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
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
function (next,model){
   this.removeAllItems(model).classic(next);
           
}
    

Documentation generated using coddoc.