Example #1
0
 /**
  * @param bool $strict
  * @throws ObjectNotFoundException
  * @return Prototyped|bool
  */
 public function getNext($strict = false)
 {
     $row = $this->fetchRow();
     if (!$row) {
         if ($strict) {
             throw new ObjectNotFoundException();
         }
         return false;
     }
     return $this->dao->getProtoClass()->makeOnlyObject($this->dao->getObjectName(), $row);
 }