From 6ae94e9fd3525fd0ae90db7e7d0969f517c7061a Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Thu, 2 Jul 2015 10:36:28 +0200 Subject: [PATCH] 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! --- book/doctrine.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 63c15079822..ba6cf3617b1 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -951,8 +951,6 @@ To relate the ``Category`` and ``Product`` entities, start by creating a products: targetEntity: Product mappedBy: category - # don't forget to init the collection in the __construct() method - # of the entity .. code-block:: xml