]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/WallabagRestController.php
remove persist() for PATCH and DELETE
[github/wallabag/wallabag.git] / 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;