CodeDredd / pinia-orm

The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.
https://pinia-orm.codedredd.de/
MIT License
452 stars 39 forks source link

feat(pinia-orm): STI Models can only be retrieved through parent #1835

Closed CodeDredd closed 6 months ago

CodeDredd commented 6 months ago

🔗 Linked issue

closes #1735

❓ Type of change

📚 Description

It's more an enhancment than a bugfix. The problem in this issue was that the child models didn't had a default @type value on which a where clause was filtering. Added now entity as fallback if no default value for type is defined.

📝 Checklist

codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.71%. Comparing base (807fa36) to head (5a2da94).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1835 +/- ## ======================================= Coverage 99.71% 99.71% ======================================= Files 88 88 Lines 6027 6030 +3 Branches 511 512 +1 ======================================= + Hits 6010 6013 +3 Misses 13 13 Partials 4 4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.