change line 25 to a call of $this->setEntityManager() //avoid code duplication