Skip to content

Commit a33c258

Browse files
committed
[mongodb] Fixing typo per @ornicar
1 parent 843dee2 commit a33c258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/doctrine/mongodb.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ Deleting an Object
428428
Deleting an object is very similar, but requires a call to the ``remove()``
429429
method of the document manager::
430430

431-
$em->remove($product);
432-
$em->flush();
431+
$dm->remove($product);
432+
$dm->flush();
433433

434434
As you might expect, the ``remove()`` method notifies Doctrine that you'd
435435
like to remove the given document from the MongoDB. The actual delete operation

0 commit comments

Comments
 (0)