Added Assert\Not Blank() for the name of policy. #260

This commit is contained in:
Korina Cordero 2019-08-30 03:12:58 +00:00
parent a71b1a36fd
commit 237dd7aa93

View file

@ -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;