Use statements & update translation

This commit is contained in:
Jeremy Benoist
2016-10-11 21:45:43 +02:00
parent 8c61fd12b1
commit b0de88f75d
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();
}
}