Exemplo n.º 1
0
Arquivo: Row.php Projeto: douggr/benri
 /**
  * @return mixed The primary key value(s), as an associative array if the
  *  key is compound, or a scalar if the key is single-column
  */
 protected final function _doUpdate()
 {
     /// A read-only row cannot be saved.
     $this->checkReadOnly();
     /// Run pre-UPDATE logic
     $this->_update();
     if (count($this->_errors)) {
         throw new Zend_Db_Table_Row_Exception('This row contain errors.');
     }
     return parent::_doUpdate();
 }