diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau01.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau01.php index 232ab7b7..d4dfeca3 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau01.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau01.php @@ -30,7 +30,7 @@ class Niveau01 private $label; /** - * @ORM\Column(type="string", length=9) + * @ORM\Column(type="string", length=9, nullable=true) */ private $siren; diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau02.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau02.php index cd406662..9e1f6508 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau02.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Niveau02.php @@ -29,7 +29,7 @@ class Niveau02 private $label; /** - * @ORM\Column(type="string", length=14) + * @ORM\Column(type="string", length=14, nullable=true) */ private $siret; diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau01Type.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau01Type.php index e12e5ab7..ccdf3290 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau01Type.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau01Type.php @@ -42,6 +42,7 @@ class Niveau01Type extends AbstractType TextType::class, array( "label" => $options["labelsiren"], "disabled" => ($options["mode"]=="delete"?true:false), + "required" => false, "attr" => array("class" => "form-control", "style" => "margin-bottom:15px") ) ); diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau02Type.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau02Type.php index b16015de..a879ab5a 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau02Type.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Form/Niveau02Type.php @@ -54,6 +54,7 @@ class Niveau02Type extends AbstractType TextType::class, array( "label" =>"SIRET", "disabled" => ($options["mode"]=="delete"?true:false), + "required" => false, "attr" => array("class" => "form-control", "style" => "margin-bottom:15px") ) );