ActiveRecord_Association_CollectionImplements 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)
ActiveRecord_Association_Collection
__construct
(ActiveRecord_Base $record, ActiveRecord_Proxy $proxy, ActiveRecord_Assocation $association, [array $associates = null])
Constructor __construct (line 27)
Constructor
associates (line 45)
Returns the array of associate objects
build (line 270)
Construct a new associate from a set of attributes and add it to the collection.
clear (line 151)
Clear all associates from the collection
count (line 73)
Returns the number of associated objects in the collection (same as size())
create (line 284)
Construct a new associate and save it (validation permitting) from a set of attributes and add it to the collection.
delete (line 254)
Remove the associate from the collection
exists (line 239)
Similar to ActiveRecord_Base::exists(), but limited to items within this collection.
find (line 175)
Similar to ActiveRecord_Base::find(), but limited to items within this collection.
find_all (line 227)
Similar to ActiveRecord_Base::find_all(), but limited to items within this collection.
find_first (line 210)
Similar to ActiveRecord_Base::find_first(), but limited to items within this collection.
getIterator (line 87)
Returns an iterator for this collections objects
is_empty (line 165)
Test the collection to see if it is empty
length (line 80)
Returns the number of associated objects in the collection (same as size())
offsetExists (line 97)
Test for the existence of a given offset
offsetGet (line 108)
Get the associate at a given offset
offsetSet (line 119)
Set the associate at a given offset
offsetUnset (line 138)
Unset the associate at a given offset
size (line 58)
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