I think you can remove the use statement for EntityRepository ;)