public function unload() { $table = $this->getTableSchema(); foreach ($this->getData() as $alias => $row) { \Yii::$app->db->createCommand()->delete($table->fullName, $row)->execute(); } parent::unload(); }
/** * @inheritdoc */ public function unload() { parent::unload(); $this->resetTable(); }