$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,
SeoCategory::
class D;
if (isset($categoryData['shopId'
])) { $shop =
$this->manager->
find( Shop::
class,
$categoryData['shopId'
] );