@@ 267-273 (lines=7) @@ | ||
264 | * @param string $from Target collection for the $graphLookup operation to |
|
265 | * search, recursively matching the connectFromField to the connectToField. |
|
266 | */ |
|
267 | public function graphLookup(string $from) : Stage\GraphLookup |
|
268 | { |
|
269 | $stage = new Stage\GraphLookup($this, $from, $this->dm, $this->class); |
|
270 | $this->addStage($stage); |
|
271 | ||
272 | return $stage; |
|
273 | } |
|
274 | ||
275 | /** |
|
276 | * Groups documents by some specified expression and outputs to the next |
|
@@ 332-338 (lines=7) @@ | ||
329 | * |
|
330 | * @see https://docs.mongodb.org/manual/reference/operator/aggregation/lookup/ |
|
331 | */ |
|
332 | public function lookup(string $from) : Stage\Lookup |
|
333 | { |
|
334 | $stage = new Stage\Lookup($this, $from, $this->dm, $this->class); |
|
335 | $this->addStage($stage); |
|
336 | ||
337 | return $stage; |
|
338 | } |
|
339 | ||
340 | /** |
|
341 | * Filters the documents to pass only the documents that match the specified |