mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #6759] Inverse side of OneToOne is loaded without identifier condition #10128
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/6759
State: closed
Merged: No
When testing of 2.6.x-dev, I found out that under certain conditions is inverse side of OneToOne relation loaded without any SQL condition - whith results in loading first row returned by database and possibly corrupted data.
Condition when this occurs are:
@JoinColumn(name="field"))=> 💥 Mapping side of the realtion will be loaded with second SQL query, but WHERE condition is missing
Attached is failing test case illustration the issue.
Bug is probably caused by
a360da5a7e