mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Cannot auto refresh "***" as there are unsaved changes after updating to 2.13.4 #7076
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SkanderMejdi on GitHub (Nov 24, 2022).
Bug Report
Summary
Hello,
After updating to 2.13.4, I got an error saying that I cannot auto refresh the entity. Going back to 2.13.3 solved the issue.
Not sure to understand how it is related
Current behavior
create()a proxyobject()method raises the following errorOnly way to avoid this is to call the method
disableAutoRefresh()Calling
save()has no effectHow to reproduce
Create a model factory
call
refresh()methodExpected behavior
Create a model factory
call
refresh()methodNo exception thrown
Thank you ! 🙂
@derrabus commented on GitHub (Nov 24, 2022):
I'm sorry, but I have no idea what a model factory is. Can you please try to reproduce your issue by using ORM APIs only or report it to where ever this model factory is coming from?
@SkanderMejdi commented on GitHub (Nov 25, 2022):
My bad i'm sorry, the error is coming from
Zenstruck\Foundry\ModelFactory, I assumed it was coming fromdoctrine/ormsince the error appeared after updating to doctrine 🙏Thank you and have a good day 🙂
@dimabredun commented on GitHub (Jan 18, 2023):
Hi. I'm having the same error with foundry, could you tell me please how did you fix it?
@OleksandrConstell commented on GitHub (Feb 23, 2024):
I have the same issue. The issue appeared after I added a new field to the doctrine Entity