public function findPostingForId($id)
    {
        $dql = '
            SELECT    p
            FROM      %s p
            WHERE     p.id = :id
            AND       p.organization = :organization
        ';

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

        return $this->em
            ->createQuery(sprintf($dql, $this->postingFqcn))
            ->setParameter('id', $id)
            ->setParameter('organization', $this->oh->getOrganization())
            ->getSingleResult()
        ;
    }
public function findPostingForId ( $ id ) { $ dql = '
            SELECT    p
            FROM      %s p
            WHERE     p.id = :id
            AND       p.organization = :organization
        ' ; return $ this -> em -> createQuery ( sprintf ( $ dql , $ this -> postingFqcn ) ) -> setParameter ( 'id' , $ id ) -> setParameter ( 'organization' , $ this -> oh -> getOrganization ( ) ) -> getSingleResult ( ) ; }
Find Posting for id

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

@param  int $id

@return Posting
Find Posting for id