PartKeepr\StatisticBundle\Services\StatisticService::getPartCategoryCount PHP Method

getPartCategoryCount() public method

Returns the part category count.
public getPartCategoryCount ( ) : integer
return integer
    public function getPartCategoryCount()
    {
        $dql = "SELECT COUNT(c.id) FROM PartKeepr\\PartBundle\\Entity\\PartCategory c";
        return $this->entityManager->createQuery($dql)->getSingleScalarResult();
    }