Wednesday 15 June 2005 3:50:46 am
hi, I am using eZpersistentObject for a module I'm writing to interface with an external databse and its tables. Browsing the code, I can see that there is mapping / handling for string and numeric int / float / double types. but how do I write the definition array for fields of date / datetime type? e.g. from my own ezpersistentObject::definition method: CreationDate is a mySQL datatype. I would like to write the definition snippet like this....
"creationDate" => array( 'name' => "CreationDate",
'datatype' => 'datetime',
'default' => '', 'required' => true ), but it seems that eZContentObject has no special handling for dates/datetimes. Should I use the string datatype in definition and make sure myself that the datetime is correctly written to db? TIA Massimiliano
|