Actually I just realized there is a similar class in the Doctrine Bridge for the ExpressionLanguage. I'm going to send a PR.