[PR #532] [CLOSED] Composite primary keys and datetime fields #8333

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/532
Author: @albertofem
Created: 12/11/2012
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 4473540 Fixed exception thrown when composite primary keys are \DateTime objects

📊 Changes

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

View changed files

📝 lib/Doctrine/ORM/UnitOfWork.php (+1 -1)

📄 Description

When using composite primary keys and fields with date or datetimes, the UnitOfWork throws an exception like "\DateTime object could not be converted to string".

This patch solves this issue by converting the datetime object into a simple timestamp.


🔄 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/532 **Author:** [@albertofem](https://github.com/albertofem) **Created:** 12/11/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`4473540`](https://github.com/doctrine/orm/commit/44735404c138a96c48e1d094f7c2dff1d319e327) Fixed exception thrown when composite primary keys are \DateTime objects ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+1 -1) </details> ### 📄 Description When using composite primary keys and fields with date or datetimes, the UnitOfWork throws an exception like "\DateTime object could not be converted to string". This patch solves this issue by converting the datetime object into a simple timestamp. --- <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:59:26 +01:00
admin closed this issue 2026-01-22 15:59:26 +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#8333