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

Feature/391 - Add polymorphic relationships #621

Merged
merged 25 commits into from
Apr 19, 2022
Merged

Feature/391 - Add polymorphic relationships #621

merged 25 commits into from
Apr 19, 2022

Conversation

josephmancuso
Copy link
Member

@josephmancuso josephmancuso commented Apr 8, 2022

Closes #391

Starts to change how polymorphic relationships work

  • MorphTo
    • Fetching via relationship
    • Eager Loading
  • MorphToMany
    • Fetching via relationship
    • Eager Loading
  • Morph Many
    • Fetching via relationship
    • Eager Loading
  • Morph One
    • morph one is to go the other way.
  • I modified the collection class to remove the hidden attribute and idk if this will break anything. Need to check

@josephmancuso josephmancuso changed the title Feature/391 Feature/391 - Add polymorphic relationships Apr 11, 2022
@josephmancuso
Copy link
Member Author

After trying to write the documentation i realized i missed a step here. We need to be able to simply do the reverse relationship

Copy link
Member Author

@josephmancuso josephmancuso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

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.

Polymorphic and many to many polymorphic relations
1 participant