Merge pull request #1201 from marcosdsanchez/master
Update working-with-objects.rst
This commit is contained in:
commit
30bf192cf4
@ -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