Пример #1
0
 public function loadFromQuery(fResult $result)
 {
     try {
         $result->tossIfNoRows();
     } catch (fNoRowsException $e) {
         throw new sfNotFoundException();
     }
     $result = $result->asObjects();
     $this->loadFromObject($result->fetchRow());
     return $this;
 }