Skip to content

[Doctrine] Update associations.rst #16134

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

Merged
merged 1 commit into from
Nov 20, 2021
Merged

[Doctrine] Update associations.rst #16134

merged 1 commit into from
Nov 20, 2021

Conversation

VosKoen
Copy link
Contributor

@VosKoen VosKoen commented Nov 19, 2021

syntax error in orphanRemoval=true

In the Attributes code example #[ORM\OneToMany(mappedBy: 'user', targetEntity: Recipe::class, orphanRemoval=true)], doesn't work because of wrong syntax.
should be #[ORM\OneToMany(mappedBy: 'user', targetEntity: Recipe::class, orphanRemoval: true)]

syntax error in orphanRemoval=true

In the Attributes code example #[ORM\OneToMany(mappedBy: 'user', targetEntity: Recipe::class, orphanRemoval=true)], doesn't work because of wrong syntax.
should be #[ORM\OneToMany(mappedBy: 'user', targetEntity: Recipe::class, orphanRemoval: true)]
@xabbuh xabbuh added this to the 5.3 milestone Nov 20, 2021
@carsonbot carsonbot changed the title Update associations.rst [Doctrine] Update associations.rst Nov 20, 2021
@javiereguiluz
Copy link
Member

Good catch @VosKoen! Thanks and congrats on your first Symfony Docs contribution 🎉

@javiereguiluz javiereguiluz merged commit 5f85823 into symfony:5.3 Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants