propelorm/PropelBundle — pull request #188 by marekkalnik (2012-11-05 12:21:14+00:00)
Title: [UniqueValidator] Allow setting custom message, adapt to sf2.1 API

This PR allows setting the message by using 'message' option.

It contains also a refactoring to adapt the code to recent Symfony forms API changes (removes dependency on deprecated functions).

It fixes #160.

The PR should be safe to merge into 1.1 and 2.0 (do you want me to make a separate PR?).
Also note that the namespace is not conform with Symfony2 namespaces (should be Constraint rather than Constraints) but I didn't touch it to avoid BC breaks.