diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-04 17:54:23 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-04 17:54:23 +0100 |
commit | 42a9064620eb73eaa42928a22eeec86299d4a883 (patch) | |
tree | 59f24a86bcde7f497a860300e299b87e7af13d43 /src/Wallabag/CoreBundle/Controller/EntryController.php | |
parent | 889249804f44136fc608bbc6699f47932825d440 (diff) | |
download | wallabag-42a9064620eb73eaa42928a22eeec86299d4a883.tar.gz wallabag-42a9064620eb73eaa42928a22eeec86299d4a883.tar.zst wallabag-42a9064620eb73eaa42928a22eeec86299d4a883.zip |
implement delete method
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( |