@@ 80-91 (lines=12) @@ | ||
77 | /** |
|
78 | * {@inheritdoc} |
|
79 | */ |
|
80 | public function findAll($page = 1, $pageSize = null) |
|
81 | { |
|
82 | $search = $this->repository->createSearch()->addQuery(new MatchAllQuery()); |
|
83 | ||
84 | if (!$pageSize) { |
|
85 | $search->setScroll('10m'); |
|
86 | } else { |
|
87 | $search = $search->setFrom(($page - 1) * $pageSize)->setSize($pageSize); |
|
88 | } |
|
89 | ||
90 | return $this->execute($search); |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * {@inheritdoc} |
|
@@ 134-145 (lines=12) @@ | ||
131 | /** |
|
132 | * {@inheritdoc} |
|
133 | */ |
|
134 | public function findByParent(ActivityLogInterface $activityLog, $page = 1, $pageSize = null) |
|
135 | { |
|
136 | $search = $this->repository->createSearch()->addQuery(new TermQuery('parentUuid', $activityLog->getUuid())); |
|
137 | ||
138 | if (!$pageSize) { |
|
139 | $search->setScroll('10m'); |
|
140 | } else { |
|
141 | $search->setFrom(($page - 1) * $pageSize)->setSize($pageSize); |
|
142 | } |
|
143 | ||
144 | return $this->execute($search); |
|
145 | } |
|
146 | ||
147 | /** |
|
148 | * {@inheritdoc} |