Issue #2066535 by tim.plunkett, jsst, Berdir: Add EntityManagerInterface and stop typehinting with EntityManager.