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