From a06f8d475992f8fe4ac7cd0e6463882ed2f7c25f Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 14 Dec 2016 21:38:10 +0100 Subject: [PATCH] Update working-with-associations.rst --- docs/en/reference/working-with-associations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/working-with-associations.rst b/docs/en/reference/working-with-associations.rst index f79371d16..32fcfdaba 100644 --- a/docs/en/reference/working-with-associations.rst +++ b/docs/en/reference/working-with-associations.rst @@ -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