1
0
mirror of synced 2025-01-19 15:01:40 +03:00

Merge pull request #1201 from marcosdsanchez/master

Update working-with-objects.rst
This commit is contained in:
Guilherme Blanco 2014-12-01 10:52:56 -05:00
commit 30bf192cf4

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();
}