Update working-with-objects.rst
Fix syntax error in constructor.
This commit is contained in:
parent
c2ad338707
commit
8e26705693
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user