Could you suggest an approach how to implement SELECT FOR UPDATE with Doctrine?
I need to read a counter value, then use it in PHP code and immediately increment the value before someone else (from another process) uses the same value.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Locking support
Doctrine 2 implements Locking support for entities:
Native sql
Also, you can do it throws execute raw SQL:
and then