ModelBundle/Repository/ContentRepository.php
public function updateStatusByContentType(StatusInterface $status, $contentType) {
        $this->createQueryBuilder()
            ->updateMany()
            ->field('status')->set($status)
            ->field('contentType')->equals($contentType)
            ->getQuery()
            ->execute();
    }
public function updateStatusByContentType(StatusInterface $status, $contentType) {
        $this->createQueryBuilder()
            ->updateMany()
            ->field('status')->set($status)
            ->field('contentType')->equals($contentType)
            ->getQuery()
            ->execute();
    }
public function updateStatusByContentType ( StatusInterface $ status , $ contentType ) { $ this -> createQueryBuilder ( ) -> updateMany ( ) -> field ( 'status' ) -> set ( $ status ) -> field ( 'contentType' ) -> equals ( $ contentType ) -> getQuery ( ) -> execute ( ) ; }
@param StatusInterface $status
@param string          $contentType

@return array
@param StatusInterface $status @param string $contentType