mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	apply maxHolder constraint on houehold
This commit is contained in:
		| @@ -9,6 +9,7 @@ use Doctrine\Common\Collections\Criteria; | ||||
| use Symfony\Component\Serializer\Annotation as Serializer; | ||||
| use Chill\MainBundle\Entity\Address; | ||||
| use Chill\PersonBundle\Entity\Household\HouseholdMember; | ||||
| use Chill\PersonBundle\Validator\Constraints\Household\MaxHolder; | ||||
|  | ||||
| /** | ||||
|  * @ORM\Entity | ||||
| @@ -18,6 +19,7 @@ use Chill\PersonBundle\Entity\Household\HouseholdMember; | ||||
|  * @Serializer\DiscriminatorMap(typeProperty="type", mapping={ | ||||
|  *    "household"=Household::class | ||||
|  * }) | ||||
|  * @MasHolder() | ||||
|  */ | ||||
| class Household | ||||
| { | ||||
|   | ||||
| @@ -4,7 +4,9 @@ namespace Chill\PersonBundle\Validator\Constraints\Household; | ||||
|  | ||||
| use Symfony\Component\Validator\Constraint; | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * @Annotation | ||||
|  */ | ||||
| class MaxHolder extends Constraint | ||||
| { | ||||
|     public $message = 'household.max_holder_overflowed'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user