mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
improve addresses
This commit is contained in:
@@ -36,6 +36,14 @@ final class AddressReferenceRepository implements ObjectRepository
|
||||
return $this->repository->findAll();
|
||||
}
|
||||
|
||||
public function countAll(): int
|
||||
{
|
||||
$qb = $this->repository->createQueryBuilder('ar');
|
||||
$qb->select('count(ar.id)');
|
||||
|
||||
return $qb->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AddressReference[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user