Implements interfaces:
The collection of associates in a has many association. In addition to the documented methods, the collection object may be treated as an array (iterated over, accessed with square brackets, etc.).
Located in /activerecord/lib/ActiveRecord/Association/Collection.php (line 11)
Constructor
Returns the array of associate objects
Construct a new associate from a set of attributes and add it to the collection.
Clear all associates from the collection
Returns the number of associated objects in the collection (same as size())
Construct a new associate and save it (validation permitting) from a set of attributes and add it to the collection.
Remove the associate from the collection
Similar to ActiveRecord_Base::exists(), but limited to items within this collection.
Similar to ActiveRecord_Base::find(), but limited to items within this collection.
Similar to ActiveRecord_Base::find_all(), but limited to items within this collection.
Similar to ActiveRecord_Base::find_first(), but limited to items within this collection.
Returns an iterator for this collections objects
Test the collection to see if it is empty
Returns the number of associated objects in the collection (same as size())
Test for the existence of a given offset
Get the associate at a given offset
Set the associate at a given offset
Unset the associate at a given offset
Returns the number of associated objects in the collection
Documentation generated on Wed, 25 Apr 2012 09:46:41 -0700 by phpDocumentor 1.4.3