Phalcon\Db\Adapter\MongoDB\Collection::dropIndexes PHP 메소드

dropIndexes() 공개 메소드

Drop all indexes in the collection.
또한 보기: DropIndexes::__construct() for supported options
public dropIndexes ( array $options = [] ) : array | object
$options array Additional options
리턴 array | object Command result document
    public function dropIndexes(array $options = [])
    {
        if (!isset($options['typeMap'])) {
            $options['typeMap'] = $this->typeMap;
        }
        $operation = new DropIndexes($this->databaseName, $this->collectionName, '*', $options);
        $server = $this->manager->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY));
        return $operation->execute($server);
    }