FriendsOfSymfony/FOSUserBundle — pull request #702 by stof (2012-07-08 12:56:00+00:00)
Title: Unique validation

This removes the custom unique validators maintained in the bundle to use the core validators, which are maintained by their respective teams (and work better even if our previous code was enough for the canonical fields in the supported storages). Btw, this also adds the uniqueness check for couchdb users as it was previously not implemented.

There is a known issue: the error currently appears at the root of the form instead of being attached to the username field because it is attached to the usernameCanonical field which is not part of the form. This is not a regression as the uniqueness errors where previously attached at the class level. I will send a PR to symfony to allow attaching the error to another field in the UniqueEntity validator (which will add the feature for all 3 doctrine-based implementations).
I haven't tested the propel support but I suspect that it does weird things with the message according to my reading of their constraint validator. @willdurand any reason to ignore the message provided explicitly by the user ?