Skip to content

Commit f2f6538

Browse files
committed
fixed undefined
1 parent 0217900 commit f2f6538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Doctrine/EntityFinderByPrimary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function getEntity(string $class): object
155155
$object = $this->getNullableEntity($class);
156156

157157
if (!$object) {
158-
throw new EntityNotFound($class, $id);
158+
throw new EntityNotFound($class, (string) $this->getParameterValue());
159159
}
160160

161161
return $object;

0 commit comments

Comments
 (0)