orm icon indicating copy to clipboard operation
orm copied to clipboard

Reverse relation of HasMany is not loading

Open shanginn opened this issue 1 year ago • 0 comments

No duplicates 🥲.

  • [x] 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

shanginn avatar Apr 25 '25 04:04 shanginn