public function getNodeUids(array $contentUids)
    {
        if (empty($contentUids)) {
            return [];
        }

        $meta = $this
                ->getEntityManager()
                ->getClassMetadata('BackBee\ClassContent\AbstractClassContent');

        $nodeUids = $this
                ->getEntityManager()
                ->getConnection()
                ->createQueryBuilder()
                ->select('c.node_uid')
                ->from($meta->getTableName(), 'c')
                ->andWhere('c.' . $meta->getColumnName('_uid') . ' IN (:ids)')
                ->setParameter('ids', $contentUids, Connection::PARAM_STR_ARRAY)
                ->execute()
                ->fetchAll(\PDO::FETCH_COLUMN);

        return array_unique(array_filter($nodeUids));
    }
public function getNodeUids(array $contentUids)
    {
        if (empty($contentUids)) {
            return [];
        }

        $meta = $this
                ->getEntityManager()
                ->getClassMetadata('BackBee\ClassContent\AbstractClassContent');

        $nodeUids = $this
                ->getEntityManager()
                ->getConnection()
                ->createQueryBuilder()
                ->select('c.node_uid')
                ->from($meta->getTableName(), 'c')
                ->andWhere('c.' . $meta->getColumnName('_uid') . ' IN (:ids)')
                ->setParameter('ids', $contentUids, Connection::PARAM_STR_ARRAY)
                ->execute()
                ->fetchAll(\PDO::FETCH_COLUMN);

        return array_unique(array_filter($nodeUids));
    }
public function getNodeUids ( array $ contentUids ) { if ( empty ( $ contentUids ) ) { return [ ] ; } $ meta = $ this -> getEntityManager ( ) -> getClassMetadata ( 'BackBee\ClassContent\AbstractClassContent' ) ; $ nodeUids = $ this -> getEntityManager ( ) -> getConnection ( ) -> createQueryBuilder ( ) -> select ( 'c.node_uid' ) -> from ( $ meta -> getTableName ( ) , 'c' ) -> andWhere ( 'c.' . $ meta -> getColumnName ( '_uid' ) . ' IN (:ids)' ) -> setParameter ( 'ids' , $ contentUids , Connection :: PARAM_STR_ARRAY ) -> execute ( ) -> fetchAll ( \ PDO :: FETCH_COLUMN ) ; return array_unique ( array_filter ( $ nodeUids ) ) ; }
Returns every main node attach to the provided content uids.

@param array $contentUids

@return array
Returns every main node attach to the provided content uids .