You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because there is non relation yet, I set $user after my entity loaded from the DB.
What don't work
When I change a no-managed attribute and I make an make an $orm->flush(), it try to update the database. Because there is no modification on my managed attributes, nothing change on DB and it cause 'Failed to update one or more records in the database.' exception.
What it should be done
The TrackedCollection should only compare the "UnkeyedValues"
The text was updated successfully, but these errors were encountered:
Titou74
changed the title
Manager try to update an object if a no-ORM attribute is changed
Manager try to update an object if a no-managed attribute is changed
Jul 20, 2021
What I try to do
Having on a same object some managed attributes and no-managed attributes, for example
Because there is non relation yet, I set $user after my entity loaded from the DB.
What don't work
When I change a no-managed attribute and I make an make an $orm->flush(), it try to update the database. Because there is no modification on my managed attributes, nothing change on DB and it cause 'Failed to update one or more records in the database.' exception.
What it should be done
The TrackedCollection should only compare the "UnkeyedValues"
The text was updated successfully, but these errors were encountered: