From be6a35e842689ea69b9dc6a65d99006492370e9e Mon Sep 17 00:00:00 2001 From: stoakes Date: Wed, 14 Jun 2017 23:48:21 +0200 Subject: [PATCH] Add assert not null on Etude.prospect --- src/Mgate/SuiviBundle/Entity/Etude.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mgate/SuiviBundle/Entity/Etude.php b/src/Mgate/SuiviBundle/Entity/Etude.php index 2dc9fd3ad..170d09145 100644 --- a/src/Mgate/SuiviBundle/Entity/Etude.php +++ b/src/Mgate/SuiviBundle/Entity/Etude.php @@ -147,6 +147,7 @@ class Etude /** * @Assert\Valid() + * @Assert\NotNull() * @ORM\ManyToOne(targetEntity="Mgate\PersonneBundle\Entity\Prospect", cascade={"persist"}) * @ORM\JoinColumn(nullable=false) */