Newscoop\Services\CommentService::findBy PHP Method

findBy() public method

Find records by set of criteria
public findBy ( array $criteria, array | null $orderBy = null, integer | null $limit = null, integer | null $offset = null ) : array
$criteria array
$orderBy array | null
$limit integer | null
$offset integer | null
return array
    public function findBy(array $criteria, $orderBy = null, $limit = null, $offset = null)
    {
        return $this->em->getRepository('Newscoop\\Entity\\Comment')->findBy($criteria, $orderBy, $limit, $offset);
    }