mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-29 13:36:13 +00:00
add querybuilder method to repository
This commit is contained in:
parent
f00e01d44e
commit
3822f68574
@ -40,6 +40,11 @@ class CalendarRepository implements ObjectRepository
|
|||||||
return $this->repository->count(['accompanyingPeriod' => $period]);
|
return $this->repository->count(['accompanyingPeriod' => $period]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function createQueryBuilder(string $alias, ?string $indexBy = null): QueryBuilder
|
||||||
|
{
|
||||||
|
return $this->repository->createQueryBuilder($alias, $indexBy);
|
||||||
|
}
|
||||||
|
|
||||||
public function countByUser(User $user, DateTimeImmutable $from, DateTimeImmutable $to): int
|
public function countByUser(User $user, DateTimeImmutable $from, DateTimeImmutable $to): int
|
||||||
{
|
{
|
||||||
return $this->buildQueryByUser($user, $from, $to)
|
return $this->buildQueryByUser($user, $from, $to)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user