diff -r caeb4c8b5487 -r ba6b8e38d90e Entity/DocumentRepository.php --- a/Entity/DocumentRepository.php Wed Dec 14 23:53:37 2011 +0100 +++ b/Entity/DocumentRepository.php Mon Dec 19 17:50:04 2011 +0100 @@ -214,7 +214,6 @@ } $this->getEntityManager()->persist($baseDocument); - $this->getEntityManager()->flush(); return $baseDocument; }