aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/AnnotationBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-11 21:45:43 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-22 13:13:07 +0200
commitb0de88f75dead50385e80e3897dc3913a971b91e (patch)
tree41a8b4977271e4b7c9cf68ec3747e5993f791182 /src/Wallabag/AnnotationBundle
parent8c61fd12b1df50d481e9f82c39521cca7b8ad060 (diff)
downloadwallabag-b0de88f75dead50385e80e3897dc3913a971b91e.tar.gz
wallabag-b0de88f75dead50385e80e3897dc3913a971b91e.tar.zst
wallabag-b0de88f75dead50385e80e3897dc3913a971b91e.zip
Use statements & update translation
Diffstat (limited to 'src/Wallabag/AnnotationBundle')
-rw-r--r--src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php
index c81a2614..52989bcf 100644
--- a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php
+++ b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php
@@ -116,7 +116,8 @@ class AnnotationRepository extends EntityRepository
116 public function removeAllByUserId($userId) 116 public function removeAllByUserId($userId)
117 { 117 {
118 $this->getEntityManager() 118 $this->getEntityManager()
119 ->createQuery('DELETE FROM Wallabag\AnnotationBundle\Entity\Annotation a WHERE a.user = '.$userId) 119 ->createQuery('DELETE FROM Wallabag\AnnotationBundle\Entity\Annotation a WHERE a.user = :userId')
120 ->setParameter('userId', $userId)
120 ->execute(); 121 ->execute();
121 } 122 }
122} 123}