Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit97dd87c

Browse files
committed
add notes on collection and entity field types regarding collections of entities and cookbook article
1 parentb88d588 commit97dd87c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎reference/forms/types/collection.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ forms, which is useful when creating forms that expose one-to-many relationships
2929
| Class|:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType`|
3030
+-------------+-----------------------------------------------------------------------------+
3131

32+
..note::
33+
34+
If you are working with a collection of Doctrine entities, pay special
35+
attention to the `allow_add`_, `allow_delete`_ and `by_reference`_ options.
36+
You can also see a complete example in the cookbook article
37+
:doc:`/cookbook/form/form_collections`.
38+
3239
Basic Usage
3340
-----------
3441

‎reference/forms/types/entity.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ These options inherit from the :doc:`choice</reference/forms/types/choice>` type
115115

116116
..include::/reference/forms/types/options/multiple.rst.inc
117117

118+
..note::
119+
120+
If you are working with a collection of Doctrine entities, it will be helpful
121+
to read the documention for the:doc:`/reference/forms/types/collection`
122+
as well. In addition, there is a complete example in the cookbook article
123+
:doc:`/cookbook/form/form_collections`.
124+
118125
..include::/reference/forms/types/options/expanded.rst.inc
119126

120127
..include::/reference/forms/types/options/preferred_choices.rst.inc

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp