Ejemplo n.º 1
0
 public function executeUnjoinExpert()
 {
     $this->catid = $this->getRequestParameter('catid');
     $this->user = $this->getRequestParameter('user');
     $c = new Criteria();
     $c->add(ExpertCategoryPeer::USER_ID, $this->getRequestParameter('user'));
     $c->add(ExpertCategoryPeer::CATEGORY_ID, $this->getRequestParameter('catid'));
     $category = ExpertCategoryPeer::doSelectOne($c);
     $category->delete();
 }