Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tests/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,20 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
if (\defined(ConnectionFactory::class.'::DEFAULT_SCHEME_MAP')) {
$container->prependExtensionConfig('doctrine', [
'orm' => [
'report_fields_where_declared' => true,
'validate_xml_mapping' => true,
],
]);
}

// doctrine-orm 2.x compatibility
if (class_exists(\Doctrine\Common\Annotations\AnnotationReader::class)) {
$container->prependExtensionConfig('doctrine', [
'orm' => [
'report_fields_where_declared' => true,
],
]);
}

// @phpstan-ignore-next-line
if (method_exists(Configuration::class, 'setLazyGhostObjectEnabled') && Kernel::VERSION_ID >= 60100) {
$container->prependExtensionConfig('doctrine', [
Expand Down
1 change: 0 additions & 1 deletion tests/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ doctrine:
orm:
enable_native_lazy_objects: true
auto_generate_proxy_classes: false
report_fields_where_declared: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
Expand Down
1 change: 0 additions & 1 deletion tests/config/config_old_proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ doctrine:
dummy_object_id: Meilisearch\Bundle\Tests\Dbal\Type\DummyObjectIdType
orm:
auto_generate_proxy_classes: true
report_fields_where_declared: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
Expand Down
Loading