Issue #2650086 by heykarthikwithu, mbovan, Sergiu Stici: Method entityManager is deprecated, replace with entityTypeManager
Closes #3297105