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

Default to false for 'embedded' and 'targetDocument' mappings #602

Merged
merged 1 commit into from May 12, 2024

Conversation

melkamar
Copy link
Contributor

@melkamar melkamar commented May 7, 2024

When an ODM reference is configured, the 'embedded' key may not be present at all in the association mapping. The missing key should be treated as implicit false. Without this the make:factory command will crash.

@nikophil
Copy link
Member

nikophil commented May 7, 2024

hi @melkamar

thanks for this! would you mind fixing the phpstan error? 🙏

When an ODM reference is configured, the 'embedded' key may not be
present at all in the association mapping. The missing key should be
treated as implicit false. Without this the make:factory command will
crash.
@melkamar
Copy link
Contributor Author

melkamar commented May 9, 2024

Looks good now 🙂

@nikophil nikophil merged commit 431afa3 into zenstruck:1.x May 12, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants