public function deleteFeaturedEvent($id) { $this->tx_manager->transaction(function () use($id) { FeaturedEvent::delete_by_id('FeaturedEvent', $id); }); }
public function removeFeaturedEvent() { $featured_event_id = (int) $this->request->param('EVENT_ID'); FeaturedEvent::delete_by_id('FeaturedEvent', $featured_event_id); return $this->owner->redirectBack(); }