diff --git a/example/full-config.php b/example/full-config.php index a94a1ca5..38bf8cf5 100644 --- a/example/full-config.php +++ b/example/full-config.php @@ -42,6 +42,7 @@ 'custom_hydration_modes' => [], 'naming_strategy' => null, 'quote_strategy' => null, + 'typed_field_mapper' => null, 'default_repository_class_name' => EntityRepository::class, 'repository_factory' => null, 'class_metadata_factory_name' => ClassMetadataFactory::class, diff --git a/src/ConfigurationFactory.php b/src/ConfigurationFactory.php index 444a8b76..da0dd405 100644 --- a/src/ConfigurationFactory.php +++ b/src/ConfigurationFactory.php @@ -88,6 +88,12 @@ protected function createWithConfig(ContainerInterface $container, string $confi $configuration->setNamingStrategy($config['naming_strategy']); } + if (is_string($config['typed_field_mapper'])) { + $configuration->setTypedFieldMapper($container->get($config['typed_field_mapper'])); + } elseif ($config['typed_field_mapper'] !== null) { + $configuration->setTypedFieldMapper($config['typed_field_mapper']); + } + if (is_string($config['quote_strategy'])) { $configuration->setQuoteStrategy($container->get($config['quote_strategy'])); } elseif ($config['quote_strategy'] !== null) {