@@ 173-181 (lines=9) @@ | ||
170 | */ |
|
171 | private function addInheritedFields(EntityMetadata $subClass, EntityMetadata $parentClass) |
|
172 | { |
|
173 | foreach ($parentClass->fields as $mapping) { |
|
174 | if (!isset($mapping['inherited']) && !$parentClass->isMappedSuperclass) { |
|
175 | $mapping['inherited'] = $parentClass->name; |
|
176 | } |
|
177 | if (!isset($mapping['declared'])) { |
|
178 | $mapping['declared'] = $parentClass->name; |
|
179 | } |
|
180 | $subClass->addInheritedFieldMapping($mapping); |
|
181 | } |
|
182 | foreach ($parentClass->reflFields as $name => $field) { |
|
183 | $subClass->reflFields[$name] = $field; |
|
184 | } |
|
@@ 199-207 (lines=9) @@ | ||
196 | */ |
|
197 | private function addInheritedRelations(EntityMetadata $subClass, EntityMetadata $parentClass) |
|
198 | { |
|
199 | foreach ($parentClass->associations as $mapping) { |
|
200 | if (!isset($mapping['inherited']) && !$parentClass->isMappedSuperclass) { |
|
201 | $mapping['inherited'] = $parentClass->name; |
|
202 | } |
|
203 | if (!isset($mapping['declared'])) { |
|
204 | $mapping['declared'] = $parentClass->name; |
|
205 | } |
|
206 | $subClass->addInheritedAssociationMapping($mapping); |
|
207 | } |
|
208 | } |
|
209 | } |
|
210 |