cphalcon
cphalcon copied to clipboard
\Phalcon\Mvc\Collection::count() returns an array like \Phalcon\Mvc\Collection::find() does
As documents said, we could use Phalcon\Mvc\Collection::count() like this:
public static array count ([array $parameters])
Perform a count over a collection
<?php
echo 'There are ', Robots::count(), ' robots';
But actually, it's return is just like \Phalcon\Mvc\Collection::find() .
bug?
+1
You're right, this is now fixed in 0.9.0, thanks!