FYI, this is useless as the repository already has the entity manager