Hi Bernhard,
Thanks for your response.
Can i define form validation constraints from my XML file, when i'm defining
the service ?
???
*
--
Benjamin Dulau - anonymation CEO
anonymation.com | code.anonymation.com
ben...@a
Hi Benjamin,
You can use the collection constraint for this.
use Symfony\Component\Validator\Constraints\Collection;
use Symfony\Component\Validator\Constraints\NotNull;
$defaults = array('foo' => 'bar');
$form = $factory->create('form', $defaults, array(
'validation_cons
Hi,
I saw a commit adding a way to specify the form constraint on the fly
: http://goo.gl/begfs
In the commit i see also a new attribute :
>setAttribute('validation_constraint', $options['validation_constraint'])
And that's what i'm interested in. My form Type is defined as a service, and
i wo