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/EntityChoiceList.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,7 @@ private function loadEntities($entities, $group = null)
173
173
thrownewFormException('Entities passed to the choice field must have a "__toString()" method defined (or you can also override the "property" option).');
"Associated entities are not allowed to have more than one identifier field to be " .
79
-
"part of a unique constraint in: " . $class->name . "#" . $fieldName
79
+
thrownewConstraintDefinitionException(sprintf('Associated entities are not allowed to have more than one identifier field to be part of a unique constraint in %s#%s.', $class->name, $fieldName));
80
80
);
81
81
}
82
82
$criteria[$fieldName] = array_pop($relatedId);
@@ -90,12 +90,12 @@ public function isValid($entity, Constraint $constraint)
90
90
* which is the same as the entity being validated, the criteria is
0 commit comments