forked from wallabag/wallabag
remove persist() for PATCH and DELETE
This commit is contained in:
@ -140,7 +140,6 @@ class WallabagRestController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$em->persist($entry);
|
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
return $entry;
|
return $entry;
|
||||||
@ -163,7 +162,6 @@ class WallabagRestController extends Controller
|
|||||||
|
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$entry->setDeleted(1);
|
$entry->setDeleted(1);
|
||||||
$em->persist($entry);
|
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
return $entry;
|
return $entry;
|
||||||
|
|||||||
Reference in New Issue
Block a user