[AccompanyingPeriod] create constraints for location

This commit is contained in:
2021-07-28 14:46:03 +02:00
parent 4e8dd3b189
commit 3c7b67604c
4 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace Chill\PersonBundle\Validator\Constraints\AccompanyingPeriod;
use Symfony\Component\Validator\Constraint;
/**
* @Annotation
*/
class LocationValidity extends Constraint
{
public $messagePersonLocatedMustBeAssociated = "The person where the course is located must be associated to the course. Change course's location before removing the person.";
public $messagPeriodMustRemainsLocated = "The period must remains located";
public function getTargets()
{
return self::CLASS_CONSTRAINT;
}
}