Skip to content

Commit

Permalink
Fixed the models duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Aug 29, 2024
1 parent 29accf5 commit 17f1337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/AnrService.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function duplicate(Entity\Anr $anr): Entity\Anr
'label4' => $newAnr->getLabel(4) . $suffix,
]);

foreach ($newAnr->getObjects() as $object) {
foreach ($anr->getObjects() as $object) {
$newAnr->addObject($object);
}

Expand Down

0 comments on commit 17f1337

Please sign in to comment.