1
0
Fork 0
mirror of synced 2025-04-03 05:13:37 +03:00

Update working-with-objects.rst

Fix syntax error in constructor.
This commit is contained in:
Marcos Sánchez 2014-12-01 12:50:11 -03:00
parent c2ad338707
commit 8e26705693

View file

@ -103,7 +103,8 @@ from newly opened EntityManager.
/** @OneToMany(targetEntity="Comment", mappedBy="article") */ /** @OneToMany(targetEntity="Comment", mappedBy="article") */
private $comments; private $comments;
public function __construct { public function __construct()
{
$this->comments = new ArrayCollection(); $this->comments = new ArrayCollection();
} }