__unset() public method

public __unset ( $key )
Example #1
0
 public function __unset($column)
 {
     $this->load_prefs();
     if (array_key_exists($column, $this->_prefs)) {
         unset($this->_prefs);
     } else {
         parent::__unset($column);
     }
 }
Example #2
0
 /**
  * Magic unset method, allows unset($model->property)
  *
  * @param  string $property
  *
  * @return void
  */
 public function __unset($property)
 {
     $this->orm->__unset($property);
 }