|
@@ 277-283 (lines=7) @@
|
| 274 |
|
* @param string $from Target collection for the $graphLookup operation to |
| 275 |
|
* search, recursively matching the connectFromField to the connectToField. |
| 276 |
|
*/ |
| 277 |
|
public function graphLookup(string $from) : Stage\GraphLookup |
| 278 |
|
{ |
| 279 |
|
$stage = new Stage\GraphLookup($this, $from, $this->dm, $this->class); |
| 280 |
|
$this->addStage($stage); |
| 281 |
|
|
| 282 |
|
return $stage; |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
/** |
| 286 |
|
* Groups documents by some specified expression and outputs to the next |
|
@@ 342-348 (lines=7) @@
|
| 339 |
|
* |
| 340 |
|
* @see https://docs.mongodb.org/manual/reference/operator/aggregation/lookup/ |
| 341 |
|
*/ |
| 342 |
|
public function lookup(string $from) : Stage\Lookup |
| 343 |
|
{ |
| 344 |
|
$stage = new Stage\Lookup($this, $from, $this->dm, $this->class); |
| 345 |
|
$this->addStage($stage); |
| 346 |
|
|
| 347 |
|
return $stage; |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
/** |
| 351 |
|
* Filters the documents to pass only the documents that match the specified |