1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Update working-with-associations.rst

This commit is contained in:
Thomas Landauer 2016-12-18 21:42:08 +01:00 committed by GitHub
parent 879d4e7df0
commit 1a8eeacfba

View File

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