ModelBundle/Repository/NodeRepository.php
public function removeNodeVersions(array $nodeIds)
    {
        $nodeMongoIds = array();
        foreach ($nodeIds as $nodeId) {
            $nodeMongoIds[] = new \MongoId($nodeId);
        }

        $qb = $this->createQueryBuilder();
        $qb->remove()
            ->field('id')->in($nodeMongoIds)
            ->getQuery()
            ->execute();
    }
public function removeNodeVersions(array $nodeIds)
    {
        $nodeMongoIds = array();
        foreach ($nodeIds as $nodeId) {
            $nodeMongoIds[] = new \MongoId($nodeId);
        }

        $qb = $this->createQueryBuilder();
        $qb->remove()
            ->field('id')->in($nodeMongoIds)
            ->getQuery()
            ->execute();
    }
public function removeNodeVersions ( array $ nodeIds ) { $ nodeMongoIds = array ( ) ; foreach ( $ nodeIds as $ nodeId ) { $ nodeMongoIds [ ] = new \ MongoId ( $ nodeId ) ; } $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> remove ( ) -> field ( 'id' ) -> in ( $ nodeMongoIds ) -> getQuery ( ) -> execute ( ) ; }
@param array $nodeIds

@throws \Exception
@param array $nodeIds