This case is for Doctrine entities... If it's an entityRepository, you enter the "else" statement.