Update working-with-associations.rst
This commit is contained in:
parent
6aa81d1d36
commit
a06f8d4759
@ -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…
x
Reference in New Issue
Block a user