1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Use statements & update translation

This commit is contained in:
Jeremy Benoist 2016-10-11 21:45:43 +02:00
parent 8c61fd12b1
commit b0de88f75d
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
7 changed files with 28 additions and 34 deletions

View file

@ -116,7 +116,8 @@ class AnnotationRepository extends EntityRepository
public function removeAllByUserId($userId)
{
$this->getEntityManager()
->createQuery('DELETE FROM Wallabag\AnnotationBundle\Entity\Annotation a WHERE a.user = '.$userId)
->createQuery('DELETE FROM Wallabag\AnnotationBundle\Entity\Annotation a WHERE a.user = :userId')
->setParameter('userId', $userId)
->execute();
}
}