[DDC-2194] [GH-532] Composite primary keys and datetime fields Created: 11/Dec/12  Updated: 22/Feb/14  Resolved: 16/Dec/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 0
Labels: None


This issue is created automatically through a Github pull request on behalf of albertofem:

Url: https://github.com/doctrine/doctrine2/pull/532


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.

Comment by Benjamin Eberlei [ 16/Dec/12 ]

A related Github Pull-Request [GH-532] was closed

Comment by Doctrine Bot [ 22/Feb/14 ]

A related Github Pull-Request [GH-532] was closed:

Generated at Thu Sep 03 13:30:47 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.