protected function beforeSave() { if (parent::beforeSave()) { // something happens here $this->cleanAttributesFormat(); return true; } else { return false; } }
public static function model($className = __CLASS__) { return parent::model($className); }