mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
add base authorization to person search + improve search ordering
This commit is contained in:
@@ -10,7 +10,6 @@ use Doctrine\Persistence\ObjectRepository;
|
||||
|
||||
class RelationshipRepository implements ObjectRepository
|
||||
{
|
||||
|
||||
private EntityRepository $repository;
|
||||
|
||||
public function __construct(EntityManagerInterface $em)
|
||||
@@ -40,9 +39,9 @@ class RelationshipRepository implements ObjectRepository
|
||||
|
||||
public function getClassName(): string
|
||||
{
|
||||
return MaritalStatus::class;
|
||||
return Relationship::class;
|
||||
}
|
||||
|
||||
|
||||
public function findByPerson($personId): array
|
||||
{
|
||||
// return all relationships of which person is part? or only where person is the fromPerson?
|
||||
@@ -56,5 +55,5 @@ class RelationshipRepository implements ObjectRepository
|
||||
->getResult()
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user