yii\mongodb\Collection::drop PHP Method

drop() public method

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

Usage Example

コード例 #1
0
ファイル: Collection.php プロジェクト: yiisoft/yii2-mongodb
 /**
  * @inheritdoc
  */
 public function drop()
 {
     return parent::drop() && $this->database->dropCollection($this->getChunkCollection()->name);
 }