[PR #1086] Failing test - getId() return string rather than integer #9141

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

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

State: closed
Merged: No


Hi,

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...

This simple test demonstrates the problem.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1086 **State:** closed **Merged:** No --- Hi, 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... This simple test demonstrates the problem.
admin added the pull-request label 2026-01-22 16:03:22 +01:00
admin closed this issue 2026-01-22 16:03:22 +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#9141