Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make scopes work with polymorphic relation directives #2110

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

spawnia
Copy link
Collaborator

@spawnia spawnia commented Apr 7, 2022

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Resolves #2106

Changes

Allows using scopes in polymorphic relation directives and actually apply them to the relation.

  • Clean up the abstraction for scopes
  • Consider other polymorphic relation directives

Breaking changes

Polymorphic directives will change in definition and function, but the previous behaviour made little to no sense.

@spawnia spawnia added the enhancement A feature or improvement label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scope on morphTo directive applied to source model, rather than target
1 participant