fixed incorrect replaced method name

Unlike Symfony Controller class, Doctrine\ORM\QueryBuilder
still has getEntityManager method.