1 | <?php |
||
17 | abstract class EntityRepository |
||
18 | { |
||
19 | /** |
||
20 | * @var DoctrineEntityRepository |
||
21 | */ |
||
22 | protected $repository; |
||
23 | |||
24 | /** |
||
25 | * @var PaginatorInterface |
||
26 | */ |
||
27 | protected $paginator; |
||
28 | |||
29 | public function __construct(ManagerRegistry $managerRegistry, PaginatorInterface $paginator, string $class) { |
||
37 | |||
38 | /** |
||
39 | * @param string $name |
||
40 | * @param array $arguments |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function __call($name, $arguments) |
||
49 | |||
50 | /** |
||
51 | * @param int $page |
||
52 | * @param int $itemsPerPage |
||
53 | * @param array $orderBy |
||
54 | * @return SiteSetting[] |
||
55 | */ |
||
56 | public function findAllWithPaging($page = 1, $itemsPerPage = 100, array $orderBy = []) |
||
73 | } |
||
74 |