yii\test\ActiveFixture::resetTable PHP Méthode

resetTable() protected méthode

This method is called before populating fixture data into the table associated with this fixture.
protected resetTable ( )
    protected function resetTable()
    {
        $table = $this->getTableSchema();
        $this->db->createCommand()->delete($table->fullName)->execute();
        if ($table->sequenceName !== null) {
            $this->db->createCommand()->resetSequence($table->fullName, 1)->execute();
        }
    }