1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Corrected example calling wrong method name

This commit is contained in:
Ray Rehbein 2010-12-16 06:13:28 +08:00 committed by Benjamin Eberlei
parent c89290e507
commit d81dca3e90

View File

@ -238,7 +238,7 @@ element. Here are some examples:
$comment->getUserFavorites()->removeElement($user); $comment->getUserFavorites()->removeElement($user);
// Remove by Key // Remove by Key
$user->getComments()->removeElement($ithComment); $user->getComments()->remove($ithComment);
$comment->setAuthor(null); $comment->setAuthor(null);
You need to call ``$em->flush()`` to make persist these changes in You need to call ``$em->flush()`` to make persist these changes in