@@ 59-71 (lines=13) @@ | ||
56 | /** |
|
57 | * {@inheritdoc} |
|
58 | */ |
|
59 | public function findAll($page = 1, $pageSize = null) |
|
60 | { |
|
61 | $query = $this->createQueryBuilder('e') |
|
62 | ->innerJoin('e.task', 't') |
|
63 | ->getQuery(); |
|
64 | ||
65 | if ($pageSize) { |
|
66 | $query->setMaxResults($pageSize); |
|
67 | $query->setFirstResult(($page - 1) * $pageSize); |
|
68 | } |
|
69 | ||
70 | return $query->getResult(); |
|
71 | } |
|
72 | ||
73 | /** |
|
74 | * {@inheritdoc} |
@@ 64-75 (lines=12) @@ | ||
61 | /** |
|
62 | * {@inheritdoc} |
|
63 | */ |
|
64 | public function findAll($page = 1, $pageSize = null) |
|
65 | { |
|
66 | $query = $this->createQueryBuilder('t') |
|
67 | ->getQuery(); |
|
68 | ||
69 | if ($pageSize) { |
|
70 | $query->setMaxResults($pageSize); |
|
71 | $query->setFirstResult(($page - 1) * $pageSize); |
|
72 | } |
|
73 | ||
74 | return $query->getResult(); |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * {@inheritdoc} |