DDC-2972: [GH-948] Update UnitOfWork.php #3700

Closed
opened 2026-01-22 14:25:44 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 10, 2014).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of jbhuguenin:

Url: https://github.com/doctrine/doctrine2/pull/948

Message:

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.

Originally created by @doctrinebot on GitHub (Feb 10, 2014). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of jbhuguenin: Url: https://github.com/doctrine/doctrine2/pull/948 Message: 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 Bug label 2026-01-22 14:25:44 +01:00
admin closed this issue 2026-01-22 14:25:44 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 10, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-948] was closed:
https://github.com/doctrine/doctrine2/pull/948

@doctrinebot commented on GitHub (Feb 10, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-948] was closed: https://github.com/doctrine/doctrine2/pull/948
Author
Owner

@doctrinebot commented on GitHub (Feb 10, 2014):

Comment created by @asm89:

http://docs.doctrine-project.org/en/latest/cookbook/working-with-datetime.html

@doctrinebot commented on GitHub (Feb 10, 2014): Comment created by @asm89: http://docs.doctrine-project.org/en/latest/cookbook/working-with-datetime.html
Author
Owner

@doctrinebot commented on GitHub (Feb 10, 2014):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Feb 10, 2014): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3700