/** * Returns the static model of the specified AR class. * @param string $className active record class name. * @return Reference the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }
public function beforeSave() { if ($this->userManager() != null) { $this->i_account_manager = 1; } else { $this->i_account_manager = 0; } return parent::beforeSave(); }