Share » Forums » Developer » mySQL to ezPersistentObject 3.6.0...

mySQL to ezPersistentObject 3.6.0 datatype mapping

mySQL to ezPersistentObject 3.6.0 datatype mapping

Wednesday 15 June 2005 3:50:46 am - 2 replies

Author Message

Björn Dieding@xrow.de

Wednesday 15 June 2005 5:00:54 am

how about this?

"creationdate" => array( 'name' => "CreationDate",
'datatype' => 'integer',
'default' => time(),
'required' => true ),

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Massimiliano Bariola

Wednesday 15 June 2005 6:07:41 am

Hi Bjorn,

first of all congrats on your lecture at eZcamp 2005.

your solution will work, but I cannot change the mySQL datastructure. I have to stick to the date/datetime columns.

How about if I set it as
datatype => string,
function_attributes =>array('myDateTimeField' => 'myDateGetterFunction'),
set_functions => array('myDateTimeField' => 'myDateTimeSetterFunction')

could it work, in your opinion? I wasn't able to find any documentation for these features though, so it's just a stab in the dark ..

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu