X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FController%2FEntryController.php;h=9dd904f1a5e2efd97d6bca17dc866e08724c6c25;hb=86719c63bf47686ca55020e6b0443344de36d45a;hp=aa70307b15e29b930ef47726d2daad262892eaa5;hpb=1930c19d8214c05ceefac5ac011a6b6e7e4a983d;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index aa70307b..9dd904f1 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -49,8 +49,7 @@ class EntryController extends Controller if ($form->isValid()) { // check for existing entry, if it exists, redirect to it with a message - $existingEntry = $this->get('wallabag_core.entry_repository') - ->existByUrlAndUserId($entry->getUrl(), $this->getUser()->getId()); + $existingEntry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($entry->getUrl(), $this->getUser()->getId()); if (false !== $existingEntry) { $this->get('session')->getFlashBag()->add(