Skip to content

Conversation

greg0ire
Copy link
Member

Such parameters are supposed to be deprecated.

@greg0ire
Copy link
Member Author

greg0ire commented Sep 12, 2025

⚠️ Full disclosure: this change was hard to automate, but was very repetitive, so I resorted to opencode + Claude Sonnet to do it.

Also, I've been told by @ostrolucky that it was controversial for some reason. Looking myself at the history of the issues on this repository, I think the controversy has to do with the Symfony bridge not doing the migration on their end.

See #1084 if you want to go down the rabbit hole of PRs and issues.

Because of that, I'll ask reviews from people more on the Symfony side this time. It's fine by me if this needs to be postponed to 4.0.0.

@greg0ire greg0ire force-pushed the remove-dot-class branch 2 times, most recently from 8ab5fb3 to d8e3a36 Compare September 13, 2025 09:05

$definition = $container->getDefinition('doctrine.orm.default_entity_manager');
$this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass());
$this->assertEquals('Doctrine\ORM\EntityManager', $definition->getClass());
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$this->assertEquals('Doctrine\ORM\EntityManager', $definition->getClass());
$this->assertEquals(EntityManager::class, $definition->getClass());

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, addressed!


$definition = $container->getDefinition('doctrine.orm.default_entity_manager');
$this->assertEquals('%doctrine.orm.entity_manager.class%', $definition->getClass());
$this->assertEquals('Doctrine\ORM\EntityManager', $definition->getClass());
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here and below also

Such parameters are supposed to be deprecated.
@greg0ire greg0ire added this to the 3.0.0 milestone Sep 16, 2025
@greg0ire greg0ire merged commit 6a441fa into doctrine:3.0.x Sep 19, 2025
11 checks passed
@greg0ire greg0ire deleted the remove-dot-class branch September 19, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants