This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Getting detail errors from Validators

Requests for new symfony features.

Getting detail errors from Validators

by DigitalMechanic » Thu Sep 03, 2009 3:11 pm

I'd like to see it be easier to extract validation errors after form bind and call to isValid(). Not the validation error that's rendered in the form - but the validator error detail (such as Which validator failed). At the very least would be nice to have the isValid( ) method return an array of invalid form field names. So:
Code: Select all
isValid( ) == FALSE on Initial Display
isValid( ) == TRUE if all is well.
isValid( ) == Array[unhappy_validators]
DigitalMechanic
Member
 
Posts: 43
Joined: Mon Feb 25, 2008 9:47 pm
Location: USA

Re: Getting detail errors from Validators

by houdelou » Sat Jul 28, 2012 5:43 am

Yes, that would be really helpful ! I've been searching for an answer and did not find any.

Thanks
houdelou
Junior Member
 
Posts: 1
Joined: Sat Jul 28, 2012 5:38 am