Skip to content

Commit

Permalink
do not throw an exception when there is no parent association mapping…
Browse files Browse the repository at this point in the history
… for child CRUD actions
  • Loading branch information
maMykola authored and jordisala1991 committed Apr 28, 2023
1 parent 470d3fd commit 46a40bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/CRUDController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ final protected function checkParentChildAssociation(Request $request, object $o

$parentAssociationMapping = $this->admin->getParentAssociationMapping();
if (null === $parentAssociationMapping) {
throw new \RuntimeException('The admin has no parent association mapping.');
return;
}

$propertyAccessor = PropertyAccess::createPropertyAccessor();
Expand Down

0 comments on commit 46a40bd

Please sign in to comment.