mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
apply maxHolder constraint on houehold
This commit is contained in:
parent
ecc8b929ca
commit
45dc8ed661
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user