Пример #1
0
 /**
  * Set row field value
  * 
  * If the value is the same as the current value and the row is loaded from the database
  * the value will not be reset. If the row is new the value will be (re)set and marked
  * as modified
  *
  * @param   string  The column name.
  * @param   mixed   The value for the property.
  * @return  void
  */
 public function __set($column, $value)
 {
     if (!isset($this->_data[$column]) || $this->_data[$column] != $value || $this->isNew()) {
         parent::__set($column, $value);
         $this->_modified[$column] = true;
     }
 }