Knp\Bundle\KnpBundlesBundle\Repository\OwnerRepository::count PHP Method

count() public method

public count ( )
    public function count()
    {
        return $this->getEntityManager()->createQuery('SELECT COUNT(e.id) FROM ' . $this->getEntityName() . ' e')->getSingleScalarResult();
    }