mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #532] [CLOSED] Composite primary keys and datetime fields #8333
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/532
Author: @albertofem
Created: 12/11/2012
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
4473540Fixed 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.