Normalizer/CategoryNormalizer.php 1 location
|
@@ 45-48 (lines=4) @@
|
| 42 |
|
|
| 43 |
|
foreach ($childrenIds as $childrenId) { |
| 44 |
|
$children = $this->categoryRepository->find($childrenId); |
| 45 |
|
foreach ($children->getTranslations() as $trans) { |
| 46 |
|
$normalizedCategory['children'][$children->getCode( |
| 47 |
|
)]['labels'] [$trans->getLocale()] = $trans->getLabel(); |
| 48 |
|
} |
| 49 |
|
$normalizedCategory['children'][$children->getCode( |
| 50 |
|
)]['parent'] = (!is_null( |
| 51 |
|
$children->getParent() |
Normalizer/FamilyNormalizer.php 1 location
|
@@ 52-55 (lines=4) @@
|
| 49 |
|
$normalizedFamily['associations'] = array(); |
| 50 |
|
foreach($associations as $association) { |
| 51 |
|
$normalizedFamily['associations'][$association->getCode()] = array(); |
| 52 |
|
foreach ($association->getTranslations() as $assocTrans) { |
| 53 |
|
$normalizedFamily['associations'][$association->getCode()]['labels'][$assocTrans->getLocale( |
| 54 |
|
)] = $assocTrans->getLabel(); |
| 55 |
|
} |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
foreach ($family->getAttributes() as $attr) { |