Doctrine FindBy doesn't work with time type #5619

Closed
opened 2026-01-22 15:13:01 +01:00 by admin · 2 comments
Owner

Originally created by @fpilee on GitHub (Jul 27, 2017).

Originally assigned to: @Ocramius on GitHub.

Trying to retrieve a entity using findBy
But doctrine returns an empty array
I tried using DateTime with date 1970-01-01 but is the same

Originally created by @fpilee on GitHub (Jul 27, 2017). Originally assigned to: @Ocramius on GitHub. Trying to retrieve a entity using findBy But doctrine returns an empty array I tried using DateTime with date 1970-01-01 but is the same
admin added the BugInvalid labels 2026-01-22 15:13:02 +01:00
admin closed this issue 2026-01-22 15:13:02 +01:00
Author
Owner

@Ocramius commented on GitHub (Jul 28, 2017):

That's usually because of type conversion adding also hours/minutes/seconds.

Can you write a failing test case so we compare it against our development
branch?

On 28 Jul 2017 1:42 AM, "moralesfelipe" notifications@github.com wrote:

Trying to retrieve a entity using findBy
But doctrine returns an empty array
I tried using DateTime with date 1970-01-01 but is the same


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/doctrine/doctrine2/issues/6584, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJakCF4zBgBdLtsMMgCREVps0Y-DQZcks5sSRJigaJpZM4Ol7ct
.

@Ocramius commented on GitHub (Jul 28, 2017): That's usually because of type conversion adding also hours/minutes/seconds. Can you write a failing test case so we compare it against our development branch? On 28 Jul 2017 1:42 AM, "moralesfelipe" <notifications@github.com> wrote: Trying to retrieve a entity using findBy But doctrine returns an empty array I tried using DateTime with date 1970-01-01 but is the same — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/doctrine/doctrine2/issues/6584>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJakCF4zBgBdLtsMMgCREVps0Y-DQZcks5sSRJigaJpZM4Ol7ct> .
Author
Owner

@fpilee commented on GitHub (Jul 28, 2017):

Yes,sorry I haven't check the seconds. That was the issue

@fpilee commented on GitHub (Jul 28, 2017): Yes,sorry I haven't check the seconds. That was the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5619