UniqueObject Validator - Customize Message #160

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

Comments

Projects
None yet
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

This comment has been minimized.

Show comment
Hide comment
@willdurand

willdurand Jun 11, 2012

Member

👍

Member

willdurand commented Jun 11, 2012

👍

@EdwinLove

This comment has been minimized.

Show comment
Hide comment
@EdwinLove

EdwinLove Oct 1, 2012

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

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

@marekkalnik

This comment has been minimized.

Show comment
Hide comment
@marekkalnik

marekkalnik Nov 5, 2012

I'll make a PR today.

I'll make a PR today.

@willdurand

This comment has been minimized.

Show comment
Hide comment
@willdurand

willdurand Nov 5, 2012

Member

Fixed by PR #188

Member

willdurand commented Nov 5, 2012

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