public function beforeSave() { parent::beforeSave(); $dumper = new FlightCacheDumper(); $dumper->model = $this; $dumper->save(); Yii::log("FLIGHT CACHE DUMPER = \n" . CVarDumper::dumpAsString($dumper->model->attributes)); return false; }
/** * Returns the static model of the specified AR class. * @param string $className active record class name. * @return FlightCache the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }