[eluser]GregX999[/eluser]
[quote author="TheJim" date="1274413036"]
Accessing the first item is easy, because the object itself takes on those field values, e.g. $thing->name is set (assuming a record was found, of course -- see $thing->exists())
Accessing an arbitrary item in the collection can be done using $thing->all, which is an array. The index depends on your configuration. If your configuration has
Code:
$config['all_array_uses_ids'] = TRUE;
then objects are indexed in that array by their ID. If FALSE, $thing->all is a standard array indexed starting with 0.
[/quote]