diff --git a/en/reference/working-with-associations.rst b/en/reference/working-with-associations.rst index e49194e5b..8edd54eaf 100644 --- a/en/reference/working-with-associations.rst +++ b/en/reference/working-with-associations.rst @@ -238,7 +238,7 @@ element. Here are some examples: $comment->getUserFavorites()->removeElement($user); // Remove by Key - $user->getComments()->removeElement($ithComment); + $user->getComments()->remove($ithComment); $comment->setAuthor(null); You need to call ``$em->flush()`` to make persist these changes in