yii\mongodb\Collection::drop PHP Méthode

drop() public méthode

Drops this collection.
public drop ( ) : boolean
Résultat boolean whether the operation successful.
    public function drop()
    {
        return $this->database->dropCollection($this->name);
    }

Usage Example

Exemple #1
0
 /**
  * @inheritdoc
  */
 public function drop()
 {
     return parent::drop() && $this->database->dropCollection($this->getChunkCollection()->name);
 }