Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: php drivers namespace #1794

Closed
wants to merge 1 commit into from
Closed

fix: php drivers namespace #1794

wants to merge 1 commit into from

Conversation

clementvtrd
Copy link

update PHPDriver and StaticPHPDriver namespace to Doctrine/Persistence.

Related to issue #1793

config/orm.xml Outdated
@@ -33,8 +33,8 @@
<parameter key="doctrine.orm.metadata.annotation.class">Doctrine\ORM\Mapping\Driver\AnnotationDriver</parameter>
<parameter key="doctrine.orm.metadata.xml.class">Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver</parameter>
<parameter key="doctrine.orm.metadata.yml.class">Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver</parameter>
<parameter key="doctrine.orm.metadata.php.class">Doctrine\ORM\Mapping\Driver\PHPDriver</parameter>
<parameter key="doctrine.orm.metadata.staticphp.class">Doctrine\ORM\Mapping\Driver\StaticPHPDriver</parameter>
<parameter key="doctrine.orm.metadata.php.class">Doctrine\ORM\Persistence\Driver\PHPDriver</parameter>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be

Suggested change
<parameter key="doctrine.orm.metadata.php.class">Doctrine\ORM\Persistence\Driver\PHPDriver</parameter>
<parameter key="doctrine.orm.metadata.php.class">Doctrine\Persistence\Mapping\Driver\PHPDriver</parameter>

?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems correct according to the upgrade documentation https://github.com/doctrine/orm/blob/3.1.x/UPGRADE.md#metadata-drivers

Copy link
Author

@clementvtrd clementvtrd Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually you're right I made a typo nice catch! I did it well for StaticPHPDriver not for PHPDriver ✅

update PHPDriver and StaticPHPDriver namespace to Doctrine/Persistence
@clementvtrd clementvtrd requested a review from dmaicher April 17, 2024 07:44
@ostrolucky
Copy link
Member

Dupe of #1755

@ostrolucky ostrolucky closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants