Sulu\Bundle\ResourceBundle\Entity\FilterRepository::findByIdAndLocale PHP Method

findByIdAndLocale() public method

public findByIdAndLocale ( $id, $locale )
    public function findByIdAndLocale($id, $locale)
    {
        try {
            $qb = $this->getFilterQuery($locale);
            $qb->andWhere('filter.id = :filterId');
            $qb->setParameter('filterId', $id);
            return $qb->getQuery()->getSingleResult();
        } catch (NoResultException $exc) {
            return;
        }
    }