1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/manual/codes/Basic Components - Collection - Getting collection count.php

10 lines
141 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
$users = $table->findAll();
$users->count();
// or
count($users); // Doctrine_Collection implements Countable interface
?>