yii\test\ActiveFixture::resetTable PHP Method

resetTable() protected method

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();
        }
    }