add mappings compiler pass for bundles

help bundles to provide model classes for several doctrine variants.

analog to https://github.com/doctrine/DoctrineBundle/pull/177 and https://github.com/doctrine/DoctrineMongoDBBundle/issues/185