public function findJournalForId($id)
    {
        $dql = '
            SELECT    j,p
            FROM      %s j
            LEFT JOIN j.postings p
            WHERE     j.id = :id
            AND       j.organization = :organization
        ';

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

        return $this->em
            ->createQuery(sprintf($dql, $this->journalFqcn))
            ->setParameter('id', $id)
            ->setParameter('organization', $this->oh->getOrganization())
            ->getSingleResult()
        ;
    }
public function findJournalForId ( $ id ) { $ dql = '
            SELECT    j,p
            FROM      %s j
            LEFT JOIN j.postings p
            WHERE     j.id = :id
            AND       j.organization = :organization
        ' ; return $ this -> em -> createQuery ( sprintf ( $ dql , $ this -> journalFqcn ) ) -> setParameter ( 'id' , $ id ) -> setParameter ( 'organization' , $ this -> oh -> getOrganization ( ) ) -> getSingleResult ( ) ; }
Find Journal for id

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

@param  int $id

@return Journal
Find Journal for id