ModelBundle/Repository/RouteDocumentRepository.php
public function removeByRedirectionId($redirectionId)
    {
        $this->createQueryBuilder()
            ->remove()
            ->field('name')->equals(new \MongoRegex('/.*_' . $redirectionId . '/'))
            ->getQuery()
            ->execute();
    }
public function removeByRedirectionId($redirectionId)
    {
        $this->createQueryBuilder()
            ->remove()
            ->field('name')->equals(new \MongoRegex('/.*_' . $redirectionId . '/'))
            ->getQuery()
            ->execute();
    }
public function removeByRedirectionId ( $ redirectionId ) { $ this -> createQueryBuilder ( ) -> remove ( ) -> field ( 'name' ) -> equals ( new \ MongoRegex ( '/.*_' . $ redirectionId . '/' ) ) -> getQuery ( ) -> execute ( ) ; }
@param string $redirectionId

@return RouteDocumentInterface
@param string $redirectionId