public function edit()
 {
     $article = new ArticleEntity($_GET['id']);
     echo BreadCrumbs::getInstance()->addCrumb(__('Articles'))->addCrumb($article->getTitle());
     $article->setTags(ArticleTagRelationEntityRepository::getInstance()->setWhereArticleId($article->getId())->getPairs('tag_id'));
     echo $this->__add_edit_form($article)->setSubmitButton('Update');
     UID::text2uidJS(true, array('title_' . LNG . '_' => 'uid'), 255, 1, 0);
 }
 protected function beforeDelete()
 {
     // Remove existing relations to tags
     ArticleTagRelationEntityRepository::getInstance()->setWhereArticleId($this->getId())->deleteObjectCollection();
     return $this;
 }