[PR #6207] Documentation: Fixes missing namespaces on class call #9894

Closed
opened 2026-01-22 16:05:45 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6207

State: closed
Merged: Yes


On http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/tools.html#reverse-engineering there are calls like the following:

$cmf = new DisconnectedClassMetadataFactory();

Which would cause fatal error if not in the namespace call list, however as documentation for this feature already starts with

$em->getConfiguration()->setMetadataDriverImpl(
    new \Doctrine\ORM\Mapping\Driver\DatabaseDriver(
        $em->getConnection()->getSchemaManager()
    )
);

I added the namespace on the calls itself to maintain consistency.

**Original Pull Request:** https://github.com/doctrine/orm/pull/6207 **State:** closed **Merged:** Yes --- On http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/tools.html#reverse-engineering there are calls like the following: ```php $cmf = new DisconnectedClassMetadataFactory(); ``` Which would cause fatal error if not in the namespace call list, however as documentation for this feature already starts with ```php $em->getConfiguration()->setMetadataDriverImpl( new \Doctrine\ORM\Mapping\Driver\DatabaseDriver( $em->getConnection()->getSchemaManager() ) ); ``` I added the namespace on the calls itself to maintain consistency.
admin added the pull-request label 2026-01-22 16:05:45 +01:00
admin closed this issue 2026-01-22 16:05:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9894