Reputation: 960
I am trying to update a user ( entity name is user ) using doctrine but i can not find a method in the EntityManager class that could do the work.
I have found the methods persist() , remove(), find()... but nothing about update or edit.
Is there something I'm missing or should I just use the createQuery() method?
Upvotes: 0
Views: 408
Reputation: 64
Find your user object. (Get to a variable)
Set new values using entity setters.
Upvotes: 1