mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-17 17:08:37 +00:00
implement delete method
This commit is contained in:
parent
889249804f
commit
42a9064620
4 changed files with 42 additions and 1 deletions
|
@ -177,7 +177,8 @@ class EntryController extends Controller
|
|||
public function deleteEntryAction(Request $request, Entries $entry)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$em->remove($entry);
|
||||
$entry->setDeleted(1);
|
||||
$em->persist($entry);
|
||||
$em->flush();
|
||||
|
||||
$this->get('session')->getFlashBag()->add(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue