Sulu\Bundle\ContactBundle\Entity\AccountRepository::findAccountOnly PHP Method

findAccountOnly() public method

public findAccountOnly ( $id )
    public function findAccountOnly($id)
    {
        try {
            $qb = $this->createQueryBuilder('account')->where('account.id = :accountId');
            $query = $qb->getQuery();
            $query->setParameter('accountId', $id);
            return $query->getSingleResult();
        } catch (NoResultException $ex) {
            return;
        }
    }