Commit 9d04b161 authored by Mat's avatar Mat

novalidate, désactive les vérifs html pendant le dev

parent ed1b446b
......@@ -10,7 +10,6 @@ use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use TechnoBundle\Entity\Owner;
//use TechnoBundle\Entity\Image;
class OwnerType extends AbstractType
{
......@@ -48,7 +47,11 @@ class OwnerType extends AbstractType
parent::configureOptions($resolver);
$resolver->setDefault('data_class', Owner::class);
$resolver->setDefault('novalidate', true);
// ok, on met ça en développement, le temps de régler
// les validations au niveau des Asserts, des FormType,
// qd c'est réglé, on vire cette option !!! (false)
$resolver->setDefault('attr', array('novalidate' => true));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment