Hi,
I'm testing the new form system and I have a problem with the field type 
guessing.
In my entity, I have added annotations like this:

/**
 * @assert:Choice(callback = "getPrograms")
 * @assert:NotBlank
 */

The problem is that I get an error saying: "Either the option "choices" or 
"choice_list" is required".
It seems like the problem comes from 
Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser, in 
guessTypeForConstraint: it only looks for 'choices' (which works ok) but not 
for 'callback'.
Could someone have a look at it?
Thanks!
Anthony

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to