Permalink
Browse files

Add a clear function in GenericRepository that delegates to the entit…

…y manager.


Fixes #8.
  • Loading branch information...
1 parent ce75bf3 commit 477b4579d10b6363696ea20314d49d4957199d4e @loicfrering committed Nov 25, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/LoSo/Doctrine/ORM/Tools/Repository/GenericRepository.php
@@ -45,4 +45,9 @@ public function flush()
{
$this->_em->flush();
}
+
+ public function clear()
+ {
+ $this->_em->clear();
+ }
}

0 comments on commit 477b457

Please sign in to comment.