Issue #3023799 by Berdir, alexpott, tim.plunkett, larowlan: Add @trigger_error() to deprecated EntityManager::clearCachedDefinitions() method