-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
add notes on collection and entity field types #2428
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
Conversation
If you are working with a collection of Doctrine entities, it will be helpful | ||
to read the documention for the :doc:`/reference/forms/types/collection` | ||
as well. In addition, there is a complete example in the cookbook article | ||
:doc:`/cookbook/form/form_collections`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's safe to move this under the multiple
option, since you'll definitely need multiple => true
for this to be an issue.
I like it! The only improvement that we can't make yet is to link to the addXxx and removeXxx docs that'll be added for #1057. Obviously, we don't need to worry about that now. |
Great feedback. Changes made. Removing WIP from title. |
.. note:: | ||
|
||
If you are working with a collection of Doctrine entities, pay special | ||
attention to the ``allow_add``, ``allow_delete`` and ``by_reference`` options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use reference links here:
attention to the `allow_add`_, `allow_delete`_ and `by_reference`_ options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. PR has been updated accordingly.
👍 |
…of entities and cookbook article
add notes on collection and entity field types
big 👍 Thanks Joel! |
I added notes at the top of the collection and entity field types, directing the user to more specific documentation (and the cookbook article) if they are working with collections of Doctrine entities. Hopefully, this will point people in the right direction.