}
/**
- * Shows unread entries for current user
+ * Shows unread entries for current user.
*
* @Route("/unread", name="unread")
*
}
/**
- * Shows read entries for current user
+ * Shows read entries for current user.
*
* @Route("/archive", name="archive")
*
}
/**
- * Shows starred entries for current user
+ * Shows starred entries for current user.
*
* @Route("/starred", name="starred")
*
}
/**
- * Shows entry content
+ * Shows entry content.
*
* @param Entry $entry
*
}
/**
- * Changes read status for an entry
+ * Changes read status for an entry.
*
* @param Request $request
* @param Entry $entry
}
/**
- * Changes favorite status for an entry
+ * Changes favorite status for an entry.
*
* @param Request $request
* @param Entry $entry
}
/**
- * Deletes entry
+ * Deletes entry.
*
* @param Request $request
* @param Entry $entry
{
$this->checkUserAction($entry);
- $entry->setDeleted(1);
- $this->getDoctrine()->getManager()->flush();
+ $em = $this->getDoctrine()->getManager();
+ $em->remove($entry);
+ $em->flush();
$this->get('session')->getFlashBag()->add(
'notice',
}
/**
- * Check if the logged user can manage the given entry
+ * Check if the logged user can manage the given entry.
*
* @param Entry $entry
*/