@@ 151-153 (lines=3) @@ | ||
148 | foreach ($metaData->associationMappings as $fieldName => $mapping) { |
|
149 | $associationData = $this->getAssociatedId($fieldName, $mapping, $data); |
|
150 | if (!empty($associationData)) { |
|
151 | if (in_array($mapping['type'], [ClassMetadataInfo::ONE_TO_ONE, ClassMetadataInfo::MANY_TO_ONE])) { |
|
152 | $entity = $this->hydrateToOneAssociation($entity, $fieldName, $mapping, $associationData); |
|
153 | } |
|
154 | ||
155 | if (in_array($mapping['type'], [ClassMetadataInfo::ONE_TO_MANY, ClassMetadataInfo::MANY_TO_MANY])) { |
|
156 | $entity = $this->hydrateToManyAssociation($entity, $fieldName, $mapping, $associationData); |
|
@@ 155-157 (lines=3) @@ | ||
152 | $entity = $this->hydrateToOneAssociation($entity, $fieldName, $mapping, $associationData); |
|
153 | } |
|
154 | ||
155 | if (in_array($mapping['type'], [ClassMetadataInfo::ONE_TO_MANY, ClassMetadataInfo::MANY_TO_MANY])) { |
|
156 | $entity = $this->hydrateToManyAssociation($entity, $fieldName, $mapping, $associationData); |
|
157 | } |
|
158 | } |
|
159 | } |
|
160 |