[PR #12279] [MERGED] Deprecate string default expressions #13645

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

📋 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.xHead: deprecate-conversion


📝 Commits (1)

  • 4016d6b Deprecate 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.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/12279 **Author:** [@greg0ire](https://github.com/greg0ire) **Created:** 11/19/2025 **Status:** ✅ Merged **Merged:** 12/10/2025 **Merged by:** [@greg0ire](https://github.com/greg0ire) **Base:** `3.6.x` ← **Head:** `deprecate-conversion` --- ### 📝 Commits (1) - [`4016d6b`](https://github.com/doctrine/orm/commit/4016d6ba4bced0186f8f5e50f0faffa18fbbb3c9) Deprecate string default expressions ### 📊 Changes **12 files changed** (+543 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:17:56 +01:00
admin closed this issue 2026-01-22 16:17:56 +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#13645