From c24ed90a9380a1a37718bd58f71c357dac469f75 Mon Sep 17 00:00:00 2001 From: Pierre Rolland Date: Sun, 16 Sep 2018 19:44:48 +0200 Subject: [PATCH] Fixed collection merge --- Builder/EntityBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Builder/EntityBuilder.php b/Builder/EntityBuilder.php index 229c79f..0a0f0e0 100644 --- a/Builder/EntityBuilder.php +++ b/Builder/EntityBuilder.php @@ -232,7 +232,7 @@ private function mergeCollection( private function removeItemsNotInRequest($entityValues, array $requestValues, $entityClass) { if (CollectionUtils::isEmpty($entityValues)) { - return null; + return []; } $identifiers = $this->entityManager->getClassMetadata($entityClass)->getIdentifierFieldNames();