ModelBundle/Repository/ContentTypeRepository.php
public function removeByContentTypeId(array $contentTypeIds)
    {
        $qb = $this->createQueryBuilder();
        $qb->updateMany()
            ->field('contentTypeId')->in($contentTypeIds)
            ->field('deleted')->set(true)
            ->getQuery()
            ->execute();
    }
public function removeByContentTypeId(array $contentTypeIds)
    {
        $qb = $this->createQueryBuilder();
        $qb->updateMany()
            ->field('contentTypeId')->in($contentTypeIds)
            ->field('deleted')->set(true)
            ->getQuery()
            ->execute();
    }
public function removeByContentTypeId ( array $ contentTypeIds ) { $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> updateMany ( ) -> field ( 'contentTypeId' ) -> in ( $ contentTypeIds ) -> field ( 'deleted' ) -> set ( true ) -> getQuery ( ) -> execute ( ) ; }
@param array $contentTypeIds

@throws \Doctrine\ODM\MongoDB\MongoDBException
@param array $contentTypeIds