[PR #338] [CLOSED] EntityGenerator will typehint core fields where applicable (DateTime) #8052

Closed
opened 2026-01-22 15:58:09 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/338
Author: @benlumley
Created: 4/18/2012
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • 35c461f Adding support for typehinting setters for core types within EntityGenerator
  • a831290 Move map of php types and their typehints to EntityGenerator from DBAL\Type

📊 Changes

1 file changed (+16 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+16 -1)

📄 Description

As per other PR (on dbal) - EntityGenerator doesn't currently do this. This PR adds it.

It requires the matching PR on dbal as well for the mapping info.

https://github.com/doctrine/dbal/pull/135


🔄 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/338 **Author:** [@benlumley](https://github.com/benlumley) **Created:** 4/18/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`35c461f`](https://github.com/doctrine/orm/commit/35c461fc2417c7fbec7110446348ad849a3bb8dc) Adding support for typehinting setters for core types within EntityGenerator - [`a831290`](https://github.com/doctrine/orm/commit/a8312908a4522bde851bb020f4cfab2634a422de) Move map of php types and their typehints to EntityGenerator from DBAL\Type ### 📊 Changes **1 file changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+16 -1) </details> ### 📄 Description As per other PR (on dbal) - EntityGenerator doesn't currently do this. This PR adds it. It requires the matching PR on dbal as well for the mapping info. https://github.com/doctrine/dbal/pull/135 --- <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 15:58:09 +01:00
admin closed this issue 2026-01-22 15:58:10 +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#8052