mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +00:00
Link between address and reference, and api endpoint to find household
by address reference * add a one-to-many link between address and address reference; * update AddAddress.vue to add information on picked address reference; * add an HouseholdACLAwareRepository, with a method to find household by current address reference * add an endpoint to retrieve household by address reference * + tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\PersonBundle\Repository\Household;
|
||||
|
||||
use Chill\MainBundle\Entity\AddressReference;
|
||||
use Chill\PersonBundle\Entity\Household\Household;
|
||||
|
||||
interface HouseholdACLAwareRepositoryInterface
|
||||
{
|
||||
public function countByAddressReference(AddressReference $addressReference): int;
|
||||
|
||||
/**
|
||||
* @param AddressReference $addressReference
|
||||
* @param int|null $firstResult
|
||||
* @param int|null $maxResult
|
||||
* @return array|Household[]
|
||||
*/
|
||||
public function findByAddressReference(
|
||||
AddressReference $addressReference,
|
||||
?int $firstResult = 0,
|
||||
?int $maxResult = 50
|
||||
): array;
|
||||
}
|
Reference in New Issue
Block a user