@@ 146-150 (lines=5) @@ | ||
143 | ClassMetadataInfo::ONE_TO_MANY, |
|
144 | ClassMetadataInfo::MANY_TO_MANY, |
|
145 | ); |
|
146 | if (in_array($relation['type'], $multiTypes)) { |
|
147 | $fields[$fieldName]['relatedType'] = 'collection'; |
|
148 | } else { |
|
149 | $fields[$fieldName]['relatedType'] = 'entity'; |
|
150 | } |
|
151 | ||
152 | $fields[$fieldName]['relatedEntityShortcut'] = |
|
153 | $this->getEntityBundleShortcut($fields[$fieldName]['targetEntity']); |
@@ 136-140 (lines=5) @@ | ||
133 | ClassMetadataInfo::ONE_TO_MANY, |
|
134 | ClassMetadataInfo::MANY_TO_MANY, |
|
135 | ); |
|
136 | if (in_array($relation['type'], $multiTypes)) { |
|
137 | $fields[$fieldName]['relatedType'] = 'collection'; |
|
138 | } else { |
|
139 | $fields[$fieldName]['relatedType'] = 'entity'; |
|
140 | } |
|
141 | } |
|
142 | ||
143 | $result = []; |