You are currently reading the 1.2 documentation. Switch to 2.2  2.1  2.0 

Count Connections

You can easily get the number of connections from a Doctrine_Manager object since it implements the Countable interface.

// test.php

// ...
$num = count($manager);

echo $num;

The above is the same as doing:

// test.php

// ...
$num = $manager->count();

Questions and Feedback

If you find a problem with the documentation or have a suggestion, please register and open a ticket.

If you need support or have a technical question, you can post to the user mailing-list.