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