if we would do as i propose in https://github.com/doctrine/phpcr-odm/pull/355 (the question, not the code) this would not even be needed anymore.