public function deleteAction()
 {
     $this->view->disable();
     $id = $this->getParam('id');
     $row = Category_Place_Table::getInstance()->find($id);
     $row->delete();
 }
 public function editAction()
 {
     $id = $this->getParam('id');
     $row = $this->getTable()->findFirst($id);
     $this->view->rowsCategory = Category_Place_Table::getInstance()->find();
     $this->view->rowsCompany = Company_Table::getInstance()->find();
     $this->view->rowsCity = City_Table::getInstance()->find();
     $this->view->rowsTag = Tag_Table::getInstance()->find();
     $this->view->row = $row;
     if (!$this->request->isPost()) {
         return;
     }
     $this->view->disable();
     // Получение переменных методом POST
     $name = $this->getPost('name');
     $companyId = $this->getPost('company_id');
     $categoryId = $this->getPost('category_id');
     $logo = $this->getPost('logo');
     $cityId = $this->getPost('city_id');
     $address = $this->getPost('address');
     $geoPoint = $this->getPost('geo_point');
     $phone = $this->getPost('phone');
     $description = $this->getPost('description');
     $arrTags = explode(',', $this->getPost('tags'));
     $row->name($name)->logo($logo)->categoryId($categoryId)->companyId($companyId)->address($address)->geoPoint($geoPoint)->phone($phone)->cityId($cityId)->description($description)->save();
     Place_Tag_Manager::synchronizationFromIdArray($row->id(), $arrTags);
 }