minor changes to activity for amli

This commit is contained in:
2021-11-04 17:12:35 +01:00
parent 08bf5f9922
commit 03fb75edc8
3 changed files with 7 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ use Chill\MainBundle\Entity\HasCenterInterface;
use Chill\MainBundle\Entity\HasScopeInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Chill\MainBundle\Validator\Constraints\Entity\UserCircleConsistency;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Activity
@@ -72,6 +73,8 @@ class Activity implements HasCenterInterface, HasScopeInterface
/**
* @var \Doctrine\Common\Collections\Collection
*
* @Assert\Count(min=1, minMessage="Add at least one reason")
*/
private $reasons;