2006-08-22 18:36:34 +00:00
|
|
|
The Doctrine_Collection method count returns the number of elements currently in the collection.
|
2007-04-12 20:52:30 +00:00
|
|
|
|
|
|
|
<code type="php">
|
|
|
|
$users = $table->findAll();
|
|
|
|
|
|
|
|
$users->count();
|
|
|
|
|
|
|
|
// or
|
|
|
|
|
|
|
|
count($users); // Doctrine_Collection implements Countable interface
|
|
|
|
</code>
|