Update working-with-associations.rst
This commit is contained in:
parent
879d4e7df0
commit
1a8eeacfba
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 `cascade: persist` isn't set
|
||||
$em->persist($myFirstComment); // required, 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