Skip to content

Incorrect eager load relations with complex foreign/local keys #1799

@max-kut

Description

@max-kut

Environment

Node: 18

Reproduction

https://stackblitz.com/edit/pinia-orm-eager-load-bug?file=src%2FApp.vue

Describe the bug

There are notional 3 nested models: Lead, LeadPoint and LeadPointProduct.
As you can see after saving the structure it is expected that each lead.leadPoints model contains the entire collection of LeadPointProduct models from the database

I make pull request with resolve this bug #1798

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions