bugfix for DoctrineBuilder