mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 10:29:42 +00:00
FIX [repository][center] adjust center repository to find all active entities
This commit is contained in:
@@ -29,9 +29,12 @@ final class CenterRepository implements CenterRepositoryInterface
|
|||||||
return $this->repository->find($id, $lockMode, $lockVersion);
|
return $this->repository->find($id, $lockMode, $lockVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Center[]
|
||||||
|
*/
|
||||||
public function findActive(): array
|
public function findActive(): array
|
||||||
{
|
{
|
||||||
return $this->findAll();
|
return $this->repository->findBy(['isActive' => true], ['name' => 'ASC']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user