From 8e26705693c14a3613a2adc85180640cd00c1723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20S=C3=A1nchez?= Date: Mon, 1 Dec 2014 12:50:11 -0300 Subject: [PATCH] Update working-with-objects.rst Fix syntax error in constructor. --- docs/en/reference/working-with-objects.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/reference/working-with-objects.rst b/docs/en/reference/working-with-objects.rst index a7e03bcc9..02345ff4e 100644 --- a/docs/en/reference/working-with-objects.rst +++ b/docs/en/reference/working-with-objects.rst @@ -103,7 +103,8 @@ from newly opened EntityManager. /** @OneToMany(targetEntity="Comment", mappedBy="article") */ private $comments; - public function __construct { + public function __construct() + { $this->comments = new ArrayCollection(); }