mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1086] [CLOSED] Failing test - getId() return string rather than integer #9138
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/1086
Author: @raziel057
Created: 7/22/2014
Status: ❌ Closed
Base:
master← Head:id-as-string📝 Commits (3)
09567adFailing test (get id return string type)eb6f806Create DDC3223Test.phpc9564c4Delete DDC0003Test.php📊 Changes
1 file changed (+103 additions, -0 deletions)
View changed files
➕
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3223Test.php(+103 -0)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.