1
0
mirror of synced 2025-03-27 10:23:50 +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") */
private $comments;
public function __construct {
public function __construct()
{
$this->comments = new ArrayCollection();
}