Skip to content

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

@guweigang

Description

@guweigang

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions