mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #12279] [MERGED] Deprecate string default expressions #13645
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/12279
Author: @greg0ire
Created: 11/19/2025
Status: ✅ Merged
Merged: 12/10/2025
Merged by: @greg0ire
Base:
3.6.x← Head:deprecate-conversion📝 Commits (1)
4016d6bDeprecate string default expressions📊 Changes
12 files changed (+543 additions, -12 deletions)
View changed files
📝
UPGRADE.md(+89 -0)📝
docs/en/reference/basic-mapping.rst(+16 -0)📝
docs/en/reference/basic-mapping/DefaultValues.php(+5 -0)📝
docs/en/reference/basic-mapping/default-values.xml(+7 -0)📝
doctrine-mapping.xsd(+13 -3)📝
phpstan-baseline.neon(+2 -2)📝
src/Mapping/Driver/XmlDriver.php(+45 -2)📝
src/Tools/SchemaTool.php(+31 -0)📝
tests/Tests/ORM/Functional/DefaultTimeExpressionTest.php(+154 -5)➕
tests/Tests/ORM/Functional/DefaultTimeExpressionXmlTest.php(+101 -0)➕
tests/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Functional.XmlLegacyTimeEntity.dcm.xml(+36 -0)➕
tests/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Functional.XmlTimeEntity.dcm.xml(+44 -0)📄 Description
Right now, the ORM handles the conversion of strings that happen to be default expressions for date, time and datetime columns into the corresponding value objects.
Let us allow users to specify these value objects directly, and deprecate relying on the aforementioned conversion.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.