propelorm/Propel — Issue #303: [Peer] addInstanceToPool() failes when a datetime field is part of the primary key
Author: mrbase
Created: 2012-02-27 20:48:41+00:00
State: open

When using setXxxs() with PropelCollection and on an object with a datetime field as part of the primary key it throws an exception:

Catchable Fatal Error: Object of class DateTime could not be converted to string in ....

DateTime does not implement toString so perhaps setting the format to "c" or "U" could solve the problem ?