add compiler pass for orm mappings

this is for legacy support of https://github.com/doctrine/DoctrineBundle/pull/177 to be used with symfony < 2.3 and/or not-most-recent doctrine-bundle