public function moveToCollection($targetCollectionName, $targetDatabaseName = null) { // copy to target $this->copyToCollection($targetCollectionName, $targetDatabaseName); // remove from source $this->collection->deleteDocuments($this->expression); }