public function saveDetailAction() { $data =
$this->
Request()->
getParams();
$id =
(int) $this->
Request()->
getParam('id'
);
if ($id > 0
) { $detail =
$this->
getArticleDetailRepository()->
find($id);
if (!
$detail instanceof ProductVariant
) { throw new ModelNotFoundException(ProductVariant::
class,
$id);
} } else { $detail =
new ProductVariant();
} $detail =
$this->
saveDetail($data,
$detail);
$data['id'
] =
$detail->
getId();
$this->
View()->
assign([ 'success' => true,
'data' =>
$data,
]);
} /**
* Event listener function of the product backend module. Fired when the user saves or updates
* an product configurator dependency in the dependency window.
*/