mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #814] [CLOSED] Fixed a situation where unnecessary sql UPDATE statements were issued fo... #8744
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/814
Author: @iBiryukov
Created: 10/6/2013
Status: ❌ Closed
Base:
master← Head:dateTimeChangeCompute📝 Commits (2)
e1416c2Fixed a situation where unnecessary sql UPDATE statements were issued for unchanged DateTime objects7ac129eComment update📊 Changes
2 files changed (+57 additions, -2 deletions)
View changed files
📝
lib/Doctrine/ORM/UnitOfWork.php(+2 -1)📝
tests/Doctrine/Tests/ORM/UnitOfWorkTest.php(+55 -1)📄 Description
...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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.