public function setDetachAction()
{
$this->_helper->layout->disableLayout();
try {
$articleNumber = $this->_getParam('article_number');
$imageId = $this->_getParam('image_id');
$languageId = $this->_getParam('image_id');
$article = new Article($languageId, $articleNumber);
$image = new Image($imageId);
$articleImage = new ArticleImage($articleNumber, $imageId);
$articleImage->delete();
} catch (\InvalidArgumentException $e) {
$this->view->exception = $e->getMessage();
}
}