| @@ 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} |
|
| @@ 65-76 (lines=12) @@ | ||
| 62 | /** |
|
| 63 | * {@inheritdoc} |
|
| 64 | */ |
|
| 65 | public function findAll($page = 1, $pageSize = null) |
|
| 66 | { |
|
| 67 | $query = $this->createQueryBuilder('t') |
|
| 68 | ->getQuery(); |
|
| 69 | ||
| 70 | if ($pageSize) { |
|
| 71 | $query->setMaxResults($pageSize); |
|
| 72 | $query->setFirstResult(($page - 1) * $pageSize); |
|
| 73 | } |
|
| 74 | ||
| 75 | return $query->getResult(); |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * {@inheritdoc} |
|