/** * override to ensure support for custom attribute of anaesthetist_select * otherwise calls parent. * * @see CActiveRecord::hasAttribute() */ public function hasAttribute($name) { if ($name == 'anaesthetist_select') { return true; } return parent::hasAttribute($name); }