[PR #814] Fixed a situation where unnecessary sql UPDATE statements were issued fo... #8747

Closed
opened 2026-01-22 16:01:32 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/814

State: closed
Merged: No


...r unchanged DateTime objects

computeChangeSet method in unitOfWork compares original and new data using 'identical' (===) operator. This works well, except for DateTime objects.

Two different DateTime objects that contain the same data, should not trigger an unnecessary UPDATE query.

I made changes to account for this case.

**Original Pull Request:** https://github.com/doctrine/orm/pull/814 **State:** closed **Merged:** No --- ...r unchanged DateTime objects computeChangeSet method in unitOfWork compares original and new data using 'identical' (===) operator. This works well, except for DateTime objects. Two different DateTime objects that contain the same data, should not trigger an unnecessary UPDATE query. I made changes to account for this case.
admin added the pull-request label 2026-01-22 16:01:32 +01:00
admin closed this issue 2026-01-22 16:01:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8747