| @@ 239-244 (lines=6) @@ | ||
| 236 | if ($definition === null && !empty($secondaryTypes)) { |
|
| 237 | foreach ($secondaryTypes as $secondaryType) { |
|
| 238 | $propertyDefinitions = $secondaryType->getPropertyDefinitions(); |
|
| 239 | if (!empty($propertyDefinitions)) { |
|
| 240 | $definition = $secondaryType->getPropertyDefinition($propertyData->getId()); |
|
| 241 | if ($definition !== null) { |
|
| 242 | break; |
|
| 243 | } |
|
| 244 | } |
|
| 245 | } |
|
| 246 | } |
|
| 247 | ||
| @@ 257-262 (lines=6) @@ | ||
| 254 | foreach ($secondaryTypes as $secondaryType) { |
|
| 255 | $reloadedSecondaryType = $this->session->getTypeDefinition($secondaryType->getId(), false); |
|
| 256 | $propertyDefinitions = $reloadedSecondaryType->getPropertyDefinitions(); |
|
| 257 | if (!empty($propertyDefinitions)) { |
|
| 258 | $definition = $reloadedSecondaryType->getPropertyDefinition($propertyData->getId()); |
|
| 259 | if ($definition !== null) { |
|
| 260 | break; |
|
| 261 | } |
|
| 262 | } |
|
| 263 | } |
|
| 264 | } |
|
| 265 | } |
|