fix validation groups and sequential validator msg

This commit is contained in:
2021-06-14 16:39:27 +02:00
parent b2c1d75fc5
commit 41617295c1
4 changed files with 32 additions and 7 deletions

View File

@@ -1209,6 +1209,20 @@ class Person implements HasCenterInterface
return $this->householdParticipations;
}
public function getHouseholdParticipationsShareHousehold(): Collection
{
$criteria = new Criteria();
$expr = Criteria::expr();
$criteria->where(
$expr->eq('shareHousehold', true)
);
return $this->getHouseholdParticipations()
->matching($criteria)
;
}
public function getCurrentHousehold(?\DateTimeImmutable $at = null): ?Household
{
$criteria = new Criteria();