protected function resetIndex()
    {
        $index = $this->getIndexSchema();
        $this->db->createCommand()->truncateIndex($index->name)->execute();
    }
protected function resetIndex()
    {
        $index = $this->getIndexSchema();
        $this->db->createCommand()->truncateIndex($index->name)->execute();
    }
protected function resetIndex ( ) { $ index = $ this -> getIndexSchema ( ) ; $ this -> db -> createCommand ( ) -> truncateIndex ( $ index -> name ) -> execute ( ) ; }
Truncates the specified index removing all existing data from it.
This method is called before populating fixture data into the index associated with this fixture.
Truncates the specified index removing all existing data from it . This method is called before populating fixture data into the index associated with this fixture .