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

ENH Respect new has_one config #427

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Dec 4, 2023

has_one can now optionally have an array configuration to allow supporting multiple reciprocal has_many in a single has_one relation.

Note that a dependency bump is required since this is calling a new method. Tests won't be green until silverstripe/silverstripe-framework#11084 is merged but an installer CI run is linked in the issue.

PRs

@GuySartorelli GuySartorelli marked this pull request as draft December 4, 2023 04:51
@GuySartorelli GuySartorelli force-pushed the pulls/2/respect-new-hasone-config branch from 3fbd94b to 018bb3c Compare December 5, 2023 03:04
@GuySartorelli GuySartorelli marked this pull request as ready for review December 5, 2023 03:05
@GuySartorelli GuySartorelli marked this pull request as draft December 5, 2023 03:20
has_one can now optionally have an array configuration to allow
supporting multiple reciprocal has_many in a single has_one relation.
@GuySartorelli GuySartorelli force-pushed the pulls/2/respect-new-hasone-config branch from 018bb3c to 6d9e8f6 Compare December 5, 2023 21:30
@GuySartorelli GuySartorelli marked this pull request as ready for review December 5, 2023 21:47
Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Seems fine, won't approve just yet, will approve when other PRs are approved

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Could you trigger a rebuild now the framework PR has been merged

@GuySartorelli
Copy link
Member Author

Done (FYI you can just re-run the existing CI when it's dependent on another PR being merged - no need for pushing or anything like that)

@emteknetnz emteknetnz merged commit 1e73253 into silverstripe:2 Dec 12, 2023
9 checks passed
@emteknetnz emteknetnz deleted the pulls/2/respect-new-hasone-config branch December 12, 2023 01:15
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