[PR #948] [CLOSED] Update UnitOfWork.php #8944

Open
opened 2026-01-22 16:02:27 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/948
Author: @jbhuguenin
Created: 2/10/2014
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/UnitOfWork.php (+1 -1)

📄 Description

For datetime objects the comparison doesn't work ex:
array (size=2)
0 =>
object(DateTime)[990]
public 'date' => string '2007-10-25 00:00:00' (length=19)
public 'timezone_type' => int 3
public 'timezone' => string 'Europe/Luxembourg' (length=17)
1 =>
object(DateTime)[1876]
public 'date' => string '2007-10-25 00:00:00' (length=19)
public 'timezone_type' => int 3
public 'timezone' => string 'Europe/Luxembourg' (length=17)

it's the same date but the scrict comparison make the original value is different of the actual value.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/948 **Author:** [@jbhuguenin](https://github.com/jbhuguenin) **Created:** 2/10/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`375be8a`](https://github.com/doctrine/orm/commit/375be8af07374c06c127731c7202f0921558c883) Update UnitOfWork.php ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+1 -1) </details> ### 📄 Description For datetime objects the comparison doesn't work ex: array (size=2) 0 => object(DateTime)[990] public 'date' => string '2007-10-25 00:00:00' (length=19) public 'timezone_type' => int 3 public 'timezone' => string 'Europe/Luxembourg' (length=17) 1 => object(DateTime)[1876] public 'date' => string '2007-10-25 00:00:00' (length=19) public 'timezone_type' => int 3 public 'timezone' => string 'Europe/Luxembourg' (length=17) it's the same date but the scrict comparison make the original value is different of the actual value. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:02:28 +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#8944