protected function prepareSeoCategoryAssociatedData($data, ProductModel
$article) { if (!
isset($data['seoCategories'
])) { return $data;
} $seoCategories =
$this->
checkDataReplacement( $article->
getSeoCategories(),
$data,
'seoCategories',
true
);
/** @var ArrayCollection<array-key, Category> $categories */
$categories =
$data['categories'
];
foreach ($data['seoCategories'
] as $categoryData) { $seoCategory =
$this->
getOneToManySubElement( $seoCategories,
$categoryData,