diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-15 15:47:13 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-15 15:47:13 +0100 |
commit | 86719c63bf47686ca55020e6b0443344de36d45a (patch) | |
tree | e985658fe7e6ae5c5f016417533a36dac4e80f50 /src/Wallabag/CoreBundle/Repository | |
parent | 1930c19d8214c05ceefac5ac011a6b6e7e4a983d (diff) | |
parent | 78833672469f7beb0c4a195aa0a76f7ca4133057 (diff) | |
download | wallabag-86719c63bf47686ca55020e6b0443344de36d45a.tar.gz wallabag-86719c63bf47686ca55020e6b0443344de36d45a.tar.zst wallabag-86719c63bf47686ca55020e6b0443344de36d45a.zip |
Merge pull request #1583 from wallabag/v2-fix-delete
Fix `findOneByUrl` side effect in tests
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index a16be9e0..82eb9474 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -235,10 +235,9 @@ class EntryRepository extends EntityRepository | |||
235 | * | 235 | * |
236 | * @return array|bool | 236 | * @return array|bool |
237 | */ | 237 | */ |
238 | public function existByUrlAndUserId($url, $userId) | 238 | public function findByUrlAndUserId($url, $userId) |
239 | { | 239 | { |
240 | $res = $this->createQueryBuilder('e') | 240 | $res = $this->createQueryBuilder('e') |
241 | ->select('e.id, e.createdAt') | ||
242 | ->where('e.url = :url')->setParameter('url', $url) | 241 | ->where('e.url = :url')->setParameter('url', $url) |
243 | ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) | 242 | ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) |
244 | ->getQuery() | 243 | ->getQuery() |