/** * De record verwijderen. * * @throws Exception on failure * * @return Json */ private function delete() { $repo = getRepository($this->repository); $repo->delete($this->model, $_POST[$this->primaryKey]); //throw new Exception('Verwijderen van '.$this->subject.' #'.$_POST[$this->primarykey].' is mislukt'); return Json::success(); }