Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…y manager.

Fixes #8.
  • Loading branch information...
commit 477b4579d10b6363696ea20314d49d4957199d4e 1 parent ce75bf3
Loïc Frering authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/LoSo/Doctrine/ORM/Tools/Repository/GenericRepository.php
5 src/LoSo/Doctrine/ORM/Tools/Repository/GenericRepository.php
View
@@ -45,4 +45,9 @@ public function flush()
{
$this->_em->flush();
}
+
+ public function clear()
+ {
+ $this->_em->clear();
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.