CodeDredd / pinia-orm

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

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

Closed CodeDredd closed 4 months ago

CodeDredd commented 4 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 4 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.