lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup.php 1 location
|
@@ 193-195 (lines=3) @@
|
190 |
|
private function getReferencedFieldName($fieldName, array $mapping) |
191 |
|
{ |
192 |
|
if ( ! $mapping['isOwningSide']) { |
193 |
|
if (isset($mapping['repositoryMethod']) || ! isset($mapping['mappedBy'])) { |
194 |
|
throw MappingException::repositoryMethodLookupNotAllowed($this->class->name, $fieldName); |
195 |
|
} |
196 |
|
|
197 |
|
$mapping = $this->targetClass->getFieldMapping($mapping['mappedBy']); |
198 |
|
} |
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php 1 location
|
@@ 127-129 (lines=3) @@
|
124 |
|
->foreignField('_id') |
125 |
|
->localField($referencedFieldName); |
126 |
|
} else { |
127 |
|
if (isset($referenceMapping['repositoryMethod']) || ! isset($referenceMapping['mappedBy'])) { |
128 |
|
throw MappingException::repositoryMethodLookupNotAllowed($this->class->name, $fieldName); |
129 |
|
} |
130 |
|
|
131 |
|
$mappedByMapping = $this->targetClass->getFieldMapping($referenceMapping['mappedBy']); |
132 |
|
switch ($mappedByMapping['storeAs']) { |