Skip to content

Reverse relation of HasMany is not loading #518

Description

@shanginn

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

User has many Subscriptions
Subscription has user_id

there might be a situation when $subscription->user is set, but $subscription->user->subscriptions is empty.

here is a repo with reproduction and the Test Case

Version

ORM 2.10.1
PHP 8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions