DDC-3223: Failing test (get id return string type) #3989

Open
opened 2026-01-22 14:33:03 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 22, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user raziel057:

I found an issue in a specific case, when you find a child entity (JOINED) which is linked to another child entity.

If I clone the linked child entity and call getId(), it gives the value as 'string' rather than 'integer'. If I set the property id as public, there is no problem.

If I call getId on the child entity rather than the clone, it gives 'integer' as expected. So it's weird...

See failing test here: https://github.com/doctrine/doctrine2/pull/1086

Originally created by @doctrinebot on GitHub (Jul 22, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user raziel057: I found an issue in a specific case, when you find a child entity (JOINED) which is linked to another child entity. If I clone the linked child entity and call getId(), it gives the value as 'string' rather than 'integer'. If I set the property id as public, there is no problem. If I call getId on the child entity rather than the clone, it gives 'integer' as expected. So it's weird... See failing test here: https://github.com/doctrine/doctrine2/pull/1086
admin added the Bug label 2026-01-22 14:33:03 +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#3989