src/PHPDish/Bundle/PostBundle/Service/PostManager.php
public function findPosts(Criteria $criteria)
    {
        return $this->getPostRepository()->createQueryBuilder('p')
            ->addCriteria($criteria)
            ->getQuery()
            ->getResult();
    }
public function findPosts(Criteria $criteria)
    {
        return $this->getPostRepository()->createQueryBuilder('p')
            ->addCriteria($criteria)
            ->getQuery()
            ->getResult();
    }
{@inheritdoc}