src/Mapper/Cronjob.php
public function getPending()
    {
        $dqb = $this->_em->createQueryBuilder();
        $dqb->select(array('j'))
            ->from('PlaygroundCore\Entity\Cronjob', 'j')
            ->where($dqb->expr()->in('j.status', array(self::STATUS_PENDING)))
            ->orderBy('j.scheduleTime', 'ASC');

        return $dqb->getQuery()->getResult();
    }
public function getPending()
    {
        $dqb = $this->_em->createQueryBuilder();
        $dqb->select(array('j'))
            ->from('PlaygroundCore\Entity\Cronjob', 'j')
            ->where($dqb->expr()->in('j.status', array(self::STATUS_PENDING)))
            ->orderBy('j.scheduleTime', 'ASC');

        return $dqb->getQuery()->getResult();
    }
public function getPending ( ) { $ dqb = $ this -> _em -> createQueryBuilder ( ) ; $ dqb -> select ( array ( 'j' ) ) -> from ( 'PlaygroundCore\Entity\Cronjob' , 'j' ) -> where ( $ dqb -> expr ( ) -> in ( 'j.status' , array ( self :: STATUS_PENDING ) ) ) -> orderBy ( 'j.scheduleTime' , 'ASC' ) ; return $ dqb -> getQuery ( ) -> getResult ( ) ; }
get pending cron jobs

@return array of \Heartsentwined\Cron\Entity\Job
get pending cron jobs