typo
This commit is contained in:
parent
6ab11eb1ce
commit
c17a836985
@ -50,7 +50,7 @@ class UniqueEntityValidator extends ConstraintValidator
|
||||
|
||||
$fields = (array)$constraint->fields;
|
||||
|
||||
if (count($constraint->fields) == 0) {
|
||||
if (count($fields) == 0) {
|
||||
throw new ConstraintDefinitionException("At least one field has to be specified.");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user