Change the way to check for an existing entry

The repository method return the entry found or false if nothing exists.
This commit is contained in:
Jeremy Benoist
2015-12-24 15:19:50 +01:00
parent 27a8708b67
commit 5a4bbcc9a7
4 changed files with 20 additions and 12 deletions

View File

@ -63,6 +63,7 @@ services:
- @wallabag_core.tag_repository
- @wallabag_core.entry_repository
# repository as a service
wallabag_core.entry_repository:
class: Wallabag\CoreBundle\Repository\EntryRepository
factory: [ @doctrine.orm.default_entity_manager, getRepository ]