/** * @param \Generated\Shared\Transfer\CategoryTransfer $category * @param \Generated\Shared\Transfer\LocaleTransfer $locale * @param \Orm\Zed\Category\Persistence\SpyCategoryAttribute $categoryAttributeEntity * * @return void */ protected function saveCategoryAttribute(CategoryTransfer $category, LocaleTransfer $locale, SpyCategoryAttribute $categoryAttributeEntity) { $categoryAttributeEntity->fromArray($category->toArray()); $categoryAttributeEntity->setFkCategory($category->getIdCategory()); $categoryAttributeEntity->setFkLocale($locale->getIdLocale()); $categoryAttributeEntity->save(); }