diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 377a45ae..eb5b43ad 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -177,7 +177,8 @@ class EntryController extends Controller | |||
177 | public function deleteEntryAction(Request $request, Entries $entry) | 177 | public function deleteEntryAction(Request $request, Entries $entry) |
178 | { | 178 | { |
179 | $em = $this->getDoctrine()->getManager(); | 179 | $em = $this->getDoctrine()->getManager(); |
180 | $em->remove($entry); | 180 | $entry->setDeleted(1); |
181 | $em->persist($entry); | ||
181 | $em->flush(); | 182 | $em->flush(); |
182 | 183 | ||
183 | $this->get('session')->getFlashBag()->add( | 184 | $this->get('session')->getFlashBag()->add( |