Exemplo n.º 1
0
 /**
  * PHP setter magic method.
  * This method is overridden so that AR attributes can be accessed like properties.
  *
  * @param string $name  property name
  * @param mixed  $value property value
  */
 public function __set($name, $value)
 {
     if (!empty($this->_dynamicField[$name])) {
         $this->_dynamicData[$name] = $value;
     } else {
         parent::__set($name, $value);
     }
 }