From d1c9dc53ee9ca3d4d45a7e897a47647413bfe97d Mon Sep 17 00:00:00 2001 From: watari Date: Fri, 19 Oct 2018 18:07:11 +0300 Subject: [PATCH] Added check for sub-paths before collections removal in CollectionPersister::deleteAll. Fixed style of code. --- lib/Doctrine/ODM/MongoDB/Persisters/CollectionPersister.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ODM/MongoDB/Persisters/CollectionPersister.php b/lib/Doctrine/ODM/MongoDB/Persisters/CollectionPersister.php index d12696562a..6df2fce834 100644 --- a/lib/Doctrine/ODM/MongoDB/Persisters/CollectionPersister.php +++ b/lib/Doctrine/ODM/MongoDB/Persisters/CollectionPersister.php @@ -284,7 +284,7 @@ private function executeQuery(object $document, array $newObj, array $options) : } } - private function excludeSubPaths(array $paths) + private function excludeSubPaths(array $paths) : array { $checkedPaths = []; $pathsAmount = count($paths);