Skip to content

[NFR] Phalcon\Mvc\Model\Query - count() method #1156

Description

@ovr

Hi all
Implement new count() method to class
like

        $result = $this->modelsManager->createBuilder('e')
            ->addFrom('User\Model\Event', 'e')

            ->leftJoin('User\Model\Follow\User', 'e.user_id = f.author_user_id', 'f')

            ->where('e.user_id <> '.$userId)
            ->andWhere('f.user_id = '.$userId)

            ->getQuery()
            ->count();

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleStale issue - automatically closed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions