Skip to content

Conversation

@roxblnfk
Copy link
Member

@roxblnfk roxblnfk commented Dec 1, 2025

🔍 What was changed

Added ability to load BelongsToMorphed relations.

The new loader creates separated subqueries (join is not supported) for each morphed parent role

📝 Checklist

Todo

  • Test chain loading with morphed in the middle
  • Add options like scopes and where?
  • Test with STI and JTI

@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

❌ Patch coverage is 9.30233% with 78 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.01%. Comparing base (5b0992d) to head (f009dcf).

Files with missing lines Patch % Lines
...c/Select/Loader/Morphed/BelongsToMorphedLoader.php 0.00% 67 Missing ⚠️
src/Parser/ProxyNode.php 0.00% 8 Missing ⚠️
src/Parser/SingularNode.php 70.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x     #537      +/-   ##
============================================
- Coverage     91.55%   90.01%   -1.55%     
- Complexity     1866     1890      +24     
============================================
  Files           118      120       +2     
  Lines          4771     4856      +85     
============================================
+ Hits           4368     4371       +3     
- Misses          403      485      +82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk roxblnfk merged commit 86616a2 into 2.x Dec 10, 2025
1 check passed
@roxblnfk roxblnfk deleted the load-morphed branch December 10, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 Efficient bulk-loading of morph relations 💡Efficiently load morphed relations

2 participants