public function loadUnreadApplicationsForJob($job)
    {
        $auth=$this->getService('AuthenticationService');
        $qb=$this->createQueryBuilder()
                  ->field("readBy")->notIn(array($auth->getUser()->getId()))
                  ->field("job")->equals(new \MongoId($job->getId()));
        return $qb->getQuery()->execute();
    }
public function loadUnreadApplicationsForJob($job)
    {
        $auth=$this->getService('AuthenticationService');
        $qb=$this->createQueryBuilder()
                  ->field("readBy")->notIn(array($auth->getUser()->getId()))
                  ->field("job")->equals(new \MongoId($job->getId()));
        return $qb->getQuery()->execute();
    }
public function loadUnreadApplicationsForJob ( $ job ) { $ auth = $ this -> getService ( 'AuthenticationService' ) ; $ qb = $ this -> createQueryBuilder ( ) -> field ( "readBy" ) -> notIn ( array ( $ auth -> getUser ( ) -> getId ( ) ) ) -> field ( "job" ) -> equals ( new \ MongoId ( $ job -> getId ( ) ) ) ; return $ qb -> getQuery ( ) -> execute ( ) ; }
Get unread applications

@param \Jobs\Entity\JobInterface $job
@return array|bool|\Doctrine\MongoDB\ArrayIterator|\Doctrine\MongoDB\Cursor|\Doctrine\MongoDB\EagerCursor|mixed|null
Get unread applications