diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-11 21:45:43 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-22 13:13:07 +0200 |
commit | b0de88f75dead50385e80e3897dc3913a971b91e (patch) | |
tree | 41a8b4977271e4b7c9cf68ec3747e5993f791182 /src/Wallabag/CoreBundle/Repository/EntryRepository.php | |
parent | 8c61fd12b1df50d481e9f82c39521cca7b8ad060 (diff) | |
download | wallabag-b0de88f75dead50385e80e3897dc3913a971b91e.tar.gz wallabag-b0de88f75dead50385e80e3897dc3913a971b91e.tar.zst wallabag-b0de88f75dead50385e80e3897dc3913a971b91e.zip |
Use statements & update translation
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 5df5eff5..14616d88 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -339,7 +339,8 @@ class EntryRepository extends EntityRepository | |||
339 | public function removeAllByUserId($userId) | 339 | public function removeAllByUserId($userId) |
340 | { | 340 | { |
341 | $this->getEntityManager() | 341 | $this->getEntityManager() |
342 | ->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Entry e WHERE e.user = '.$userId) | 342 | ->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Entry e WHERE e.user = :userId') |
343 | ->setParameter('userId', $userId) | ||
343 | ->execute(); | 344 | ->execute(); |
344 | } | 345 | } |
345 | } | 346 | } |