You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the repro. The code you mentioned here looks very similar to the test case I've added in that problematic commit, maybe we could just extend it? Looks like it joins two properties on that collection, maybe it's caused by that?
Describe the bug
joinAndSelect
fields withManyToOne
relationships are not populated. Instead their PKs take their place.Stack trace
None available
To Reproduce
Steps to reproduce the behavior:
EntityRepository
add a method that usesqb()
andjoinAndSelect()
.joinAndSelect
to join and select a relationship (let's call ita
).joinAndSelect
to join a select a manyToOne relationship field from that relationship (let's call ita.b
).a.b
is not populated. Its primary key takes its place.An example repository that does this is the one used in the example repository
https://github.com/tonyjaimep/mikro-orm-join-demo
Expected behavior
Expected output (up until v5.5.3)
template and comments are populated
Actual behavior (as of v5.6.0)
template is not populated, but comments are
Additional context
This behavior started with v5.6.0. Specifically with bfa4962, which tried to solve #3812.
Versions
The text was updated successfully, but these errors were encountered: