mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1086] Failing test - getId() return string rather than integer #9141
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.