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
When saving changes to a join record in a many-many-through relation, DataObject::getChangedFields() will report all fields as changed. This is because ManyManyThroughList::createDataObject() creates the join record as though it’s a brand new DataObject, not one that already exists in the database:
Affects 4.x and 5.x
When saving changes to a join record in a many-many-through relation,
DataObject::getChangedFields()
will report all fields as changed. This is becauseManyManyThroughList::createDataObject()
creates the join record as though it’s a brand new DataObject, not one that already exists in the database:silverstripe-framework/src/ORM/ManyManyThroughList.php
Lines 86 to 92 in 9a279f6
Using
DataObject::CREATE_HYDRATED
resolves this:PR
The text was updated successfully, but these errors were encountered: