aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-05 21:36:39 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-02-05 21:36:39 +0100
commitc0284f6182a7421d2352e9288205d70b81185a7d (patch)
tree58e9087551e9787843a0141502c08bb1088aa789
parent2c093b03de92fb050a50cd4db183ba55abd4ff84 (diff)
downloadwallabag-c0284f6182a7421d2352e9288205d70b81185a7d.tar.gz
wallabag-c0284f6182a7421d2352e9288205d70b81185a7d.tar.zst
wallabag-c0284f6182a7421d2352e9288205d70b81185a7d.zip
remove persist() for PATCH and DELETE
-rw-r--r--src/Wallabag/CoreBundle/Controller/WallabagRestController.php2
1 files changed, 0 insertions, 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
140 } 140 }
141 141
142 $em = $this->getDoctrine()->getManager(); 142 $em = $this->getDoctrine()->getManager();
143 $em->persist($entry);
144 $em->flush(); 143 $em->flush();
145 144
146 return $entry; 145 return $entry;
@@ -163,7 +162,6 @@ class WallabagRestController extends Controller
163 162
164 $em = $this->getDoctrine()->getManager(); 163 $em = $this->getDoctrine()->getManager();
165 $entry->setDeleted(1); 164 $entry->setDeleted(1);
166 $em->persist($entry);
167 $em->flush(); 165 $em->flush();
168 166
169 return $entry; 167 return $entry;