/** * Salva una categoria $category su database. * * @param Category $category * @throws NotSavedException */ public function save(Category $category) { if (!$category->save()) { throw new NotSavedException(); } }