Skip to content

Commit 229a577

Browse files
author
jerolomb
committed
fix issue related to variable initialization
1 parent 9ad5472 commit 229a577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/AnrService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ public function duplicateAnr(
576576
$newAnr = new Anr($anr);
577577
$newAnr->setId(null);
578578
$newAnr->generateAndSetUuid();
579-
$newAnr->setObjects(null);
579+
$newAnr->setObjects(new ArrayCollection());
580580
$newAnr->exchangeArray($data);
581581
$newAnr->set('model', $idModel);
582582
$newAnr->setReferentials(null);

0 commit comments

Comments
 (0)