public function findAccountForPath($path)
    {
        $dql = '
            SELECT    a,p,j,op
            FROM      %s a
            LEFT JOIN a.postings p
            LEFT JOIN p.journal j
            LEFT JOIN j.postings op
            WHERE     a.path = :path
            AND       a.organization = :organization
        ';

        return $this->em
            ->createQuery(sprintf($dql, $this->accountFqcn))
            ->setParameter('path', $path)
            ->setParameter('organization', $this->oh->getOrganization())
            ->getSingleResult()
        ;
    }
public function findAccountForPath($path)
    {
        $dql = '
            SELECT    a,p,j,op
            FROM      %s a
            LEFT JOIN a.postings p
            LEFT JOIN p.journal j
            LEFT JOIN j.postings op
            WHERE     a.path = :path
            AND       a.organization = :organization
        ';

        return $this->em
            ->createQuery(sprintf($dql, $this->accountFqcn))
            ->setParameter('path', $path)
            ->setParameter('organization', $this->oh->getOrganization())
            ->getSingleResult()
        ;
    }
public function findAccountForPath ( $ path ) { $ dql = '
            SELECT    a,p,j,op
            FROM      %s a
            LEFT JOIN a.postings p
            LEFT JOIN p.journal j
            LEFT JOIN j.postings op
            WHERE     a.path = :path
            AND       a.organization = :organization
        ' ; return $ this -> em -> createQuery ( sprintf ( $ dql , $ this -> accountFqcn ) ) -> setParameter ( 'path' , $ path ) -> setParameter ( 'organization' , $ this -> oh -> getOrganization ( ) ) -> getSingleResult ( ) ; }
Find Account for path

@author Tom Haskins-Vaughan <tom@tomhv.uk>
@since  0.8.0

@param  string $path
Find Account for path