Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function __unset($name)
 {
     if (array_key_exists($name, $this->_attributes)) {
         unset($this->_attributes[$name]);
     } else {
         parent::__unset($name);
     }
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 public function __unset($name)
 {
     if (array_key_exists($name, $this->data)) {
         unset($this->data[$name]);
     } else {
         parent::__unset($name);
     }
 }