Class OneToMany
Extends
_Association.
Class to define a one to many association.
NOT to be instantiated directly
Its just documented for reference.
Defined in: oneToMany.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
diff(next, reference)
Compares our associtaion and handle any creation, removal, reloading of the associated model.
|
|
inject(parent, name)
SEE _Association#inject.
|
- Methods borrowed from class _Association:
- fetch, isEager
Method Detail
diff(next, reference)
Compares our associtaion and handle any creation, removal, reloading of the associated model.
- Parameters:
- {Function} next
- funciton to call to pass control up the middleware chain.
- {Object} reference
- to the acting association class.
inject(parent, name)
SEE _Association#inject.
Adds the following methods to each model.
- add
- add an association - add
s - add multiple associations - remove
- remove an association - splice
s - splice a number of associations
- Parameters:
- parent
- name