From c0284f6182a7421d2352e9288205d70b81185a7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 5 Feb 2015 21:36:39 +0100 Subject: [PATCH] remove persist() for PATCH and DELETE --- src/Wallabag/CoreBundle/Controller/WallabagRestController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index 711e7bb2..fae633fa 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php @@ -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; -- 2.41.0