mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
implements max holder and validation on UI
This commit is contained in:
@@ -21,7 +21,7 @@ class MembersEditor
|
||||
|
||||
public function __construct(ValidatorInterface $validator, ?Household $household)
|
||||
{
|
||||
$this->validation = $validator;
|
||||
$this->validator = $validator;
|
||||
$this->household = $household;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ class MembersEditor
|
||||
|
||||
public function validate(): ConstraintViolationListInterface
|
||||
{
|
||||
|
||||
return $this->validator->validate($this->getHousehold(), null, [ "memberships" ]);
|
||||
}
|
||||
|
||||
public function getPersistable(): array
|
||||
@@ -100,6 +100,7 @@ class MembersEditor
|
||||
return $this->persistables;
|
||||
}
|
||||
|
||||
|
||||
public function getHousehold(): ?Household
|
||||
{
|
||||
return $this->household;
|
||||
|
Reference in New Issue
Block a user