8000 explain that using by_reference only works with add/removeEntityNameSingular in English · Issue #6681 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

explain that using by_reference only works with add/removeEntityNameSingular in English #6681

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

Closed
michelepatrassi opened this issue Jun 25, 2016 · 1 comment
Labels
Form hasPR A Pull Request has already been submitted for this issue.
Milestone

Comments

@michelepatrassi
Copy link

I had to manage a one-to-many relations from ad Event to Images, so after some search I founded this:

Using by_reference force the framework to use only add/removeEntityNameSingular, so if I have an images property it uses addImage or removeImage...this is well explained in this SO answer:

-http://stackoverflow.com/questions/33358989/symfony2-form-collection-not-calling-addxxx-and-removexxx-even-if-by-reference

The problem is that I use to write code in my native language most of the time, so of course my singular/plural didn't work! I lost a lot of time searching for the root problem elsewhere (es: Doctrine), I think that add this detail to the docs can save time for who will meet the same problem.

@xabbuh xabbuh added actionable Clear and specific issues ready for anyone to take them. Form labels Jun 30, 2016
@xabbuh
Copy link
Member
xabbuh commented Jun 30, 2016

Sounds like a good idea to improve the cookbook if it is not clear enough. Adding a caution block with a short sentence might be enough.

@javiereguiluz javiereguiluz added hasPR A Pull Request has already been submitted for this issue. and removed actionable Clear and specific issues ready for anyone to take them. labels Jul 29, 2019
@javiereguiluz javiereguiluz added this to the 3.4 milestone Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Form hasPR A Pull Request has already been submitted for this issue.
Projects
None yet
Development

No branches or pull requests

3 participants
0