Skip to content

UniqueObject Validator - Customize Message #160

Closed
bmeynell opened this Issue Jun 6, 2012 · 4 comments

4 participants

@bmeynell
bmeynell commented Jun 6, 2012

There is no way to customize the message using the UniqueObject validator. Example validation.yml:

MyProject\Bundle\MyBundle\Model\MyModel:                          
    constraints:                                                                
        - Propel\PropelBundle\Validator\Constraints\UniqueObject: [ some_id, some_other ]

References:

#68

@willdurand
Propel member

:+1:

@EdwinLove

We are also having problems with this. Outputting nasty user-unfriendly error messages talking about objects to our users.

@marekkalnik

I'll make a PR today.

@willdurand
Propel member

Fixed by PR #188

@willdurand willdurand closed this Nov 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.