diff --git a/components/property_info.rst b/components/property_info.rst index 0b240497dc5..c4787e32028 100644 --- a/components/property_info.rst +++ b/components/property_info.rst @@ -455,13 +455,18 @@ with the ``property_info`` service in the Symfony Framework. 'driver' => 'pdo_sqlite', // ... ], $config); - $doctrineExtractor = new DoctrineExtractor($entityManager->getMetadataFactory()); + $doctrineExtractor = new DoctrineExtractor($entityManager); // List information. $doctrineExtractor->getProperties($class); // Type information. $doctrineExtractor->getTypes($class, $property); +.. versionadded:: 4.2 + The option to pass Doctrine's EntityManager to ``DoctrineExtractor`` was + introduced in Symfony 4.2. Previously you needed to pass the class metadata + factory associated to the EntityManager. + .. _`components-property-information-extractors-creation`: Creating Your Own Extractors