src/PHPDish/Bundle/PostBundle/Service/BookManager.php
public function getUserBookNumber(UserInterface $user)
    {
        $qb = $this->createGetUserBooksQueryBuilder($user);

        return (int)$qb->select($qb->expr()->count('c'))
            ->getQuery()
            ->getSingleScalarResult();
    }
public function getUserBookNumber(UserInterface $user)
    {
        $qb = $this->createGetUserBooksQueryBuilder($user);

        return (int)$qb->select($qb->expr()->count('c'))
            ->getQuery()
            ->getSingleScalarResult();
    }
{@inheritdoc}