]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
remove persist() for PATCH and DELETE 1055/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Thu, 5 Feb 2015 20:36:39 +0000 (21:36 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Thu, 5 Feb 2015 20:36:39 +0000 (21:36 +0100)
src/Wallabag/CoreBundle/Controller/WallabagRestController.php

index 711e7bb291d239344c2f3fc6479d410bbf2fbdcf..fae633fa4b58725cbe7a027d33e958ca8ba9fe58 100644 (file)
@@ -140,7 +140,6 @@ class WallabagRestController extends Controller
         }
 
         $em = $this->getDoctrine()->getManager();
-        $em->persist($entry);
         $em->flush();
 
         return $entry;
@@ -163,7 +162,6 @@ class WallabagRestController extends Controller
 
         $em = $this->getDoctrine()->getManager();
         $entry->setDeleted(1);
-        $em->persist($entry);
         $em->flush();
 
         return $entry;