orm
orm copied to clipboard
Reverse relation of HasMany is not loading
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