symfony/symfony — Issue #2387: ValidatorTypeGuesser does not consider validation_groups option
Author: kriswallsmith
Created: 2011-10-12 13:26:41+00:00
State: open
Labels: Bug, Form

The `ValidatorTypeGuesser` does not consider the current form's `validation_groups` option when guessing type. This could be fixed by passing the options array to the guesser methods. The signature of the `FormTypeGuesserInterface` methods would look like this:

function guessType($class, $property, array $options = array());

The default argument is provided for BC.