Skip to content

Commit 4186c32

Browse files
committed
[#6391] Add small explanation
1 parent 5e20cd0 commit 4186c32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/testing/doctrine.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ which makes all of this quite easy::
6161
protected function tearDown()
6262
{
6363
parent::tearDown();
64+
6465
$this->em->close();
65-
$this->em = null;
66+
$this->em = null; // avoid memory leaks
6667
}
6768
}

0 commit comments

Comments
 (0)