@@ 67-79 (lines=13) @@ | ||
64 | /** |
|
65 | * {@inheritdoc} |
|
66 | */ |
|
67 | public function findAll($page = 1, $pageSize = null) |
|
68 | { |
|
69 | $query = $this->createQueryBuilder('e') |
|
70 | ->innerJoin('e.task', 't') |
|
71 | ->getQuery(); |
|
72 | ||
73 | if ($pageSize) { |
|
74 | $query->setMaxResults($pageSize); |
|
75 | $query->setFirstResult(($page - 1) * $pageSize); |
|
76 | } |
|
77 | ||
78 | return $query->getResult(); |
|
79 | } |
|
80 | ||
81 | /** |
|
82 | * {@inheritdoc} |
@@ 72-83 (lines=12) @@ | ||
69 | /** |
|
70 | * {@inheritdoc} |
|
71 | */ |
|
72 | public function findAll($page = 1, $pageSize = null) |
|
73 | { |
|
74 | $query = $this->createQueryBuilder('t') |
|
75 | ->getQuery(); |
|
76 | ||
77 | if ($pageSize) { |
|
78 | $query->setMaxResults($pageSize); |
|
79 | $query->setFirstResult(($page - 1) * $pageSize); |
|
80 | } |
|
81 | ||
82 | return $query->getResult(); |
|
83 | } |
|
84 | ||
85 | /** |
|
86 | * {@inheritdoc} |