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