ModelBundle/Repository/RedirectionRepository.php
public function removeRedirections(array $redirectionIds)
    {
        $redirectionMongoIds = array();
        foreach ($redirectionIds as $redirectionId) {
            $redirectionMongoIds[] = new \MongoId($redirectionId);
        }

        $qb = $this->createQueryBuilder();
        $qb->remove()
            ->field('id')->in($redirectionMongoIds)
            ->getQuery()
            ->execute();
    }
public function removeRedirections(array $redirectionIds)
    {
        $redirectionMongoIds = array();
        foreach ($redirectionIds as $redirectionId) {
            $redirectionMongoIds[] = new \MongoId($redirectionId);
        }

        $qb = $this->createQueryBuilder();
        $qb->remove()
            ->field('id')->in($redirectionMongoIds)
            ->getQuery()
            ->execute();
    }
public function removeRedirections ( array $ redirectionIds ) { $ redirectionMongoIds = array ( ) ; foreach ( $ redirectionIds as $ redirectionId ) { $ redirectionMongoIds [ ] = new \ MongoId ( $ redirectionId ) ; } $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> remove ( ) -> field ( 'id' ) -> in ( $ redirectionMongoIds ) -> getQuery ( ) -> execute ( ) ; }
@param array $redirectionIds

@throws \Exception
@param array $redirectionIds