Skip to content

Commit

Permalink
Fixed collection merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrerolland committed Sep 16, 2018
1 parent 36ca2dd commit c24ed90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Builder/EntityBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c24ed90

Please sign in to comment.