public function findOneById($seoId)
    {
        $qb = $this->createQueryBuilder('s');
        $query = $qb
            ->andWhere($qb->expr()->eq('s.id', $seoId))
            ->setMaxResults(1)
            ->getQuery()
            //->useResultCache(true, 3600, 'ekyna_cms.seo[id:'.$seoId.']') // TODO doctrine cache clear/update
        ;
        return $query->getOneOrNullResult();
    }
public function findOneById($seoId)
    {
        $qb = $this->createQueryBuilder('s');
        $query = $qb
            ->andWhere($qb->expr()->eq('s.id', $seoId))
            ->setMaxResults(1)
            ->getQuery()
            //->useResultCache(true, 3600, 'ekyna_cms.seo[id:'.$seoId.']') // TODO doctrine cache clear/update
        ;
        return $query->getOneOrNullResult();
    }
public function findOneById ( $ seoId ) { $ qb = $ this -> createQueryBuilder ( 's' ) ; $ query = $ qb -> andWhere ( $ qb -> expr ( ) -> eq ( 's.id' , $ seoId ) ) -> setMaxResults ( 1 ) -> getQuery ( ) //->useResultCache(true, 3600, 'ekyna_cms.seo[id:'.$seoId.']') // TODO doctrine cache clear/update ; return $ query -> getOneOrNullResult ( ) ; }
Finds the seo by his id.

@param integer $seoId
@return null|\Ekyna\Bundle\CmsBundle\Model\SeoInterface
Finds the seo by his id .