public function dropAllIndexes() { $result = $this->database->createCommand()->dropIndexes($this->name, '*'); return $result['nIndexesWas']; }