Corrected example calling wrong method name
This commit is contained in:
parent
c89290e507
commit
d81dca3e90
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user