public function __set($attributeName, $value) { if ($attributeName == 'userModel') { $this->userModel = $value; } else { parent::__set($attributeName, $value); } }
public function __set($name, $value) { try { return parent::__set($name, $value); } catch (CException $e) { $m = $this->getModel(); $m->{$name} = $value; } }