public function findPagesByContent($content)
    {
        $contentUids = array_merge($this->getContentsParentUids($content->getUid()), [$content->getUid()]);
        $contentUids = implode(', ', array_unique(array_map(function ($uid) {
            return '"'.$uid.'"';
        }, $contentUids)));

        $pageUids = $this->_em->getConnection()->executeQuery(
            sprintf('SELECT uid FROM page WHERE contentset IN (%s)', $contentUids)
        )->fetchAll(\PDO::FETCH_COLUMN);

        return $this->_em->createQueryBuilder('p')
            ->select('p')
            ->from('BackBee\NestedNode\Page', 'p')
            ->where('p._uid IN (:uids)')
            ->setParameter('uids', $pageUids)
            ->getQuery()
            ->getResult()
        ;
    }
public function findPagesByContent($content)
    {
        $contentUids = array_merge($this->getContentsParentUids($content->getUid()), [$content->getUid()]);
        $contentUids = implode(', ', array_unique(array_map(function ($uid) {
            return '"'.$uid.'"';
        }, $contentUids)));

        $pageUids = $this->_em->getConnection()->executeQuery(
            sprintf('SELECT uid FROM page WHERE contentset IN (%s)', $contentUids)
        )->fetchAll(\PDO::FETCH_COLUMN);

        return $this->_em->createQueryBuilder('p')
            ->select('p')
            ->from('BackBee\NestedNode\Page', 'p')
            ->where('p._uid IN (:uids)')
            ->setParameter('uids', $pageUids)
            ->getQuery()
            ->getResult()
        ;
    }
public function findPagesByContent ( $ content ) { $ contentUids = array_merge ( $ this -> getContentsParentUids ( $ content -> getUid ( ) ) , [ $ content -> getUid ( ) ] ) ; $ contentUids = implode ( ', ' , array_unique ( array_map ( function ( $ uid ) { return '"' . $ uid . '"' ; } , $ contentUids ) ) ) ; $ pageUids = $ this -> _em -> getConnection ( ) -> executeQuery ( sprintf ( 'SELECT uid FROM page WHERE contentset IN (%s)' , $ contentUids ) ) -> fetchAll ( \ PDO :: FETCH_COLUMN ) ; return $ this -> _em -> createQueryBuilder ( 'p' ) -> select ( 'p' ) -> from ( 'BackBee\NestedNode\Page' , 'p' ) -> where ( 'p._uid IN (:uids)' ) -> setParameter ( 'uids' , $ pageUids ) -> getQuery ( ) -> getResult ( ) ; }
Find pages by Class content

@param  \BackBee\ClassContent\AbstractClassContent $content

@return Collection<Page>
Find pages by Class content