Skip to content

Commit 6ae94e9

Browse files
Removed unnecessary(?) YAML hint
| Q | A | ------------- | --- | Doc fix? | [yes] | New docs? | [no] | Applies to | [2.3] | Fixed tickets | [] I guess it's not necessary to do anything in __construct manually - the ArrayCollection is automatically initialized when you do php app/console doctrine:generate:entities AppBundle Please double-check!
1 parent 314da54 commit 6ae94e9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

book/doctrine.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,6 @@ To relate the ``Category`` and ``Product`` entities, start by creating a
951951
products:
952952
targetEntity: Product
953953
mappedBy: category
954-
# don't forget to init the collection in the __construct() method
955-
# of the entity
956954
957955
.. code-block:: xml
958956

0 commit comments

Comments
 (0)