Skip to content

Commit 9cec299

Browse files
Merge pull request #438 from HamzaDevz/fix/primarykeyloader
fix wrong parameter bool to array on Primarykeyloader, (getById)
2 parents bb1f3e6 + cdb1a08 commit 9cec299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataDefinitionsBundle/Loader/PrimaryKeyLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function load(LoaderContextInterface $context): ?Concrete
6868
$obj = $objectData[0];
6969

7070
if ($context->getDefinition()->getForceLoadObject()) {
71-
$obj = DataObject::getById($obj->getId(), true);
71+
$obj = DataObject::getById($obj->getId(), ['force' => true]);
7272

7373
if (!$obj instanceof $classObject) {
7474
$obj = new $classObject();

0 commit comments

Comments
 (0)