[Syntax Error] line 0, col 32: Error: Expected Doctrine\ORM\Query\Lexer::T_SET, got 'WHERE' #9643
yassineMessaoud9
started this conversation in
General
Replies: 1 comment
-
Just like performing an To change the field, you will need to do $qb = $this->getEntityManager()
->createQueryBuilder()
->update(Utilisateur::class,'u')
->set('u.motpasse', ':password')
->where($qb->expr()->eq('u.email',':email'))
->setParameter('password',$password)
->setParameter('email',$email); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a Symfony 4 project, and I want to change the user password, so I created a method in my repository and called it to the controller, but this error it diplay to me,
[Syntax Error] line 0, col 32: Error: Expected Doctrine\ORM\Query\Lexer::T_SET, got 'WHERE'
Repository Method
Controller Method
How can i solve it , And Thanks
Beta Was this translation helpful? Give feedback.
All reactions