1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Migrate remaining places

This commit is contained in:
Yassine Guedidi 2022-08-25 23:34:56 +02:00
parent 481283bbee
commit 791b674cdc
5 changed files with 9 additions and 9 deletions

View file

@ -581,7 +581,7 @@ class EntryRestControllerTest extends WallabagApiTestCase
// Remove the created entry to avoid side effects on other tests
if (isset($content['id'])) {
$em = $this->client->getContainer()->get('doctrine.orm.entity_manager');
$entry = $em->getReference('WallabagCoreBundle:Entry', $content['id']);
$entry = $em->getReference(Entry::class, $content['id']);
$em->remove($entry);
$em->flush();
}