Add temporary fix for DoctrineBundle

Thanks to @matthiasnoback