Added Assert\Not Blank() for the name of policy. #260
This commit is contained in:
parent
a71b1a36fd
commit
237dd7aa93
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
|
|
@ -22,6 +23,7 @@ class PrivacyPolicy
|
|||
// name
|
||||
/**
|
||||
* @ORM\Column(type="string", length=80)
|
||||
* @Assert\NotBlank()
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue