cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

\Phalcon\Mvc\Collection::count() returns an array like \Phalcon\Mvc\Collection::find() does

Open guweigang opened this issue 13 years ago • 2 comments

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?

guweigang avatar Jan 24 '13 08:01 guweigang

+1

lobostome avatar Jan 25 '13 18:01 lobostome

You're right, this is now fixed in 0.9.0, thanks!

ghost avatar Jan 25 '13 22:01 ghost