0

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?

1 Answer 1

1
  1. Find your user object. (Get to a variable)

  2. Set new values using entity setters.

  3. Finally persist and flush the user object.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.