mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Remove support for PHPDriver #6890
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beberlei on GitHub (Dec 20, 2021).
Summary
We should deprecate and remove the PHPDriver, because using a magic variable
$metadatain a file is confusing and the StaticPHPDriver offers a better API with a method on the entity. This will reduce the amount of test-code we have to maintain significantly.Users can use the
orm:convert-mappingcommand in the 2.* branches to move to another mapping driver without great effort.In addition if they want to stay with programmatic metadata configuration,
StaticPHPDrivercould be used in a simple way to keep the old mapping: