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
Relations on entities that have multiple one-to-one relations to the same entity aren't being loaded from the non-owner side when specifically requested through populate.
Stack Trace
GH issue 28xx › multiple 1-1 relations should be loaded from non-owner side
expect(received).toBeTruthy()
Received: null
92 |
93 | const leg = await orm.em.findOne(Leg, 1, { populate: ['purchasePosition'] });
> 94 | expect(leg?.purchasePosition).toBeTruthy();
| ^
95 | });
96 |
97 | test(`single 1-1 relations aren't loaded from non-owner side`, async () => {
at Object.<anonymous> (tests/issues/GH28xx.test.ts:94:35)
Describe the bug
Relations on entities that have multiple one-to-one relations to the same entity aren't being loaded from the non-owner side when specifically requested through
populate
.Stack Trace
To Reproduce
Expected behavior
As in test,
purchasePosition
should be accessible from the non-owner side.Additional context
Versions
The text was updated successfully, but these errors were encountered: