[PR #948] Update UnitOfWork.php #8950

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

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

State: closed
Merged: No


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.

**Original Pull Request:** https://github.com/doctrine/orm/pull/948 **State:** closed **Merged:** No --- 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.
admin added the pull-request label 2026-01-22 16:02:28 +01:00
admin closed this issue 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#8950