1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Update working-with-associations.rst

This commit is contained in:
Thomas Landauer 2016-12-14 21:38:10 +01:00 committed by GitHub
parent 6aa81d1d36
commit a06f8d4759

View File

@ -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