sfDoctrinePlugin: resolve warnings for PHP version > 5.3