yii\mongodb\ActiveFixture::resetCollection PHP Method

resetCollection() protected method

This method is called before populating fixture data into the collection associated with this fixture.
protected resetCollection ( )
    protected function resetCollection()
    {
        $this->getCollection()->remove();
    }