Update working-with-associations.rst
This commit is contained in:
parent
6aa81d1d36
commit
a06f8d4759
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ following code:
|
|||
$user->addComment($myFirstComment);
|
||||
|
||||
$em->persist($user);
|
||||
$em->persist($myFirstComment); // mandatory if `persist` isn't set
|
||||
$em->persist($myFirstComment); // mandatory if `cascade: persist` isn't set
|
||||
$em->flush();
|
||||
|
||||
Even if you *persist* a new User that contains our new Comment this
|
||||
|
|
Loading…
Add table
Reference in a new issue