public function getNextVideoToConvert()
    {
        $query = $this->createQueryBuilder('v');

        $this->onlyUploaded($query);

        return $query->getQuery()->getOneOrNullResult();
    }
public function getNextVideoToConvert()
    {
        $query = $this->createQueryBuilder('v');

        $this->onlyUploaded($query);

        return $query->getQuery()->getOneOrNullResult();
    }
public function getNextVideoToConvert ( ) { $ query = $ this -> createQueryBuilder ( 'v' ) ; $ this -> onlyUploaded ( $ query ) ; return $ query -> getQuery ( ) -> getOneOrNullResult ( ) ; }
Find next video to convert

@return \VideoGamesRecords\VideoBundle\Entity\Video|null
Find next video to convert