1 | <?php |
||
21 | abstract class EntityRepository |
||
22 | { |
||
23 | /** |
||
24 | * @var DoctrineEntityRepository |
||
25 | */ |
||
26 | protected $repository; |
||
27 | |||
28 | /** |
||
29 | * @var PaginatorInterface |
||
30 | */ |
||
31 | protected $paginator; |
||
32 | |||
33 | public function __construct(ManagerRegistry $managerRegistry, PaginatorInterface $paginator, string $class) { |
||
41 | |||
42 | /** |
||
43 | * @param string $name |
||
44 | * @param array $arguments |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function __call($name, $arguments) |
||
53 | |||
54 | /** |
||
55 | * @param int $page |
||
56 | * @param int $itemsPerPage |
||
57 | * @param array $orderBy |
||
58 | * @param QueryBuilder $qb |
||
59 | * @return PaginationInterface |
||
60 | */ |
||
61 | public function findAllWithPaging($page = 1, $itemsPerPage = 100, array $orderBy = [], QueryBuilder $qb = null) : PaginationInterface |
||
79 | |||
80 | /** |
||
81 | * @param string $alias |
||
82 | * @return QueryBuilder |
||
83 | */ |
||
84 | public function getQueryBuilder(string $alias) : QueryBuilder |
||
88 | } |
||
89 |