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

[6.x] Fix model MorphMany relationships not being augmented. #419

Merged

Conversation

mefenlon
Copy link
Contributor

@mefenlon mefenlon commented Feb 1, 2024

Fixed augmentation for MorphMany relationships.

This got me thinking that instanceof MorphTo may also need to be accounted for, but I have not gotten to a use case on my code yet. I would assume it should in line 192 as

if ($values instanceof BelongsTo || $values instanceof MorphTo)

I should encounter this eventually and will test then.

Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

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

Thanks for this! We can add the MorphTo check when you end up needing it.

@duncanmcclean duncanmcclean merged commit ca81dfb into statamic-rad-pack:6.x Feb 2, 2024
5 checks passed
Copy link

github-actions bot commented Feb 2, 2024

Released as part of v6.0.6.

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.

2 participants