-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The object being updated is outdated. #60
Comments
yiisoft/yii2/db/BaseActiveRecord.php Can you try it on 2.16.1 without breaking your project? Can you think of a test I could do to verify the behavior you want is working? |
Thank you for your help, unfortunately, I still have the problem also with v 2.16.1 `
` error_log dump:
the comment of the BaseActiveRecord is like this:
But why should this condition ($lock is the column name && no updates) throws an error? |
Anybody got any idea where is the problem? :-( |
@strtob I don't know the cause yet. I've setup a test harness to run an x-debug trace on my database. Thanks for the information you have sent so far. I will let you know what I find. |
Thank you :-) |
Hi,
I've built a crud app with mootensai/yii2-enhanced-gii, there are related tables by foreign keys (n:1, n:m).
In the case I got an validation error, after pressing update a second time the app throw the following error:
`Stale Object Exception – yii\db\StaleObjectException
The object being updated is outdated.
`
anybody an idea what's the problem?
Cheers!
The text was updated successfully, but these errors were encountered: