Closed
Description
When validating uniqueness fails, UniqueEntityValidator does not add "{{ value }}" message placeholder, as other validators do.
This might be useful when printing what went wrong during the validation.
So, instead of:
# Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator
$this->buildViolation($constraint->message)
->atPath($errorPath)
->setInvalidValue($invalidValue)
->addViolation();
we should probably have:
# Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator
$this->buildViolation($constraint->message)
->atPath($errorPath)
->setParameter('{{ value }}', $invalidValue)
->setInvalidValue($invalidValue)
->addViolation();