/** * Rimuove dal database la categoria $category. * * @param Category $category * @throws NotDeletedException * @throws \Exception */ public function delete(Category $category) { if (!$category->delete()) { throw new NotDeletedException(); } }
/** * Rimuove dal database la categoria $category. * * @param Category $category * @throws NotDeletedException * @throws \Exception */ public function delete(Category $category) { if (!$category->delete()) { throw new NotDeletedException(); } }