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