public function init() { parent::init(); if ($this->modelClass === null && $this->tableName === null) { throw new InvalidConfigException('Either "modelClass" or "tableName" must be set.'); } }
/** * @throws \yii\base\InvalidConfigException */ public function init() { parent::init(); $this->dataFile = __DIR__ . '/data/records.php'; }