lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup.php 1 location
|
@@ 370-372 (lines=3) @@
|
| 367 |
|
private function getReferencedFieldName($fieldName, array $mapping) |
| 368 |
|
{ |
| 369 |
|
if ( ! $mapping['isOwningSide']) { |
| 370 |
|
if (isset($mapping['repositoryMethod']) || ! isset($mapping['mappedBy'])) { |
| 371 |
|
throw MappingException::repositoryMethodLookupNotAllowed($this->class->name, $fieldName); |
| 372 |
|
} |
| 373 |
|
|
| 374 |
|
$mapping = $this->targetClass->getFieldMapping($mapping['mappedBy']); |
| 375 |
|
} |
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php 1 location
|
@@ 234-236 (lines=3) @@
|
| 231 |
|
->foreignField('_id') |
| 232 |
|
->localField($referencedFieldName); |
| 233 |
|
} else { |
| 234 |
|
if (isset($referenceMapping['repositoryMethod']) || ! isset($referenceMapping['mappedBy'])) { |
| 235 |
|
throw MappingException::repositoryMethodLookupNotAllowed($this->class->name, $fieldName); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
$mappedByMapping = $this->targetClass->getFieldMapping($referenceMapping['mappedBy']); |
| 239 |
|
switch ($mappedByMapping['storeAs']) { |