You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -95,10 +95,7 @@ public function getIdValue($object)
95
95
}
96
96
97
97
if (!$this->om->contains($object)) {
98
-
thrownewRuntimeException(
99
-
'Entities passed to the choice field must be managed. Maybe '.
100
-
'persist them in the entity manager?'
101
-
);
98
+
thrownewRuntimeException(sprintf('Entity of type "%s" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager?', get_class($object)));
0 commit comments