This method is available in the Doctrine ``ObjectManager`` interface; you may want to replace ``EntityManagerInterface`` with ``ObjectManager`` so it could be use with any Doctrine Manager. What do you think @rande?