implemented haveInRepository for Doctrine2 module