This commit is contained in:
Christian Raue 2011-06-20 23:14:48 -07:00
parent 6ab11eb1ce
commit c17a836985

View File

@ -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.");
}