Thursday 30 June 2005 1:16:45 pm - 3 replies
I am trying to fill a certain field of a persistent object with "NULL" but it does not work out... How can I do this. Filling the field with a "0" value works fine.
From func definition
"expires" => array( 'name' => "Expires", 'datatype' => 'integer', 'default' => null, 'required' => false ) )
Code that does not work for me to insert null data in db...
$mypersistentobject = new mypersistentobject( $row ) $mypersistentobject->setAttribute( 'expires', null ); $mypersistentobject->store();
Thursday 07 July 2005 2:17:20 pm
I've had a brief look at the storeObject() function of the eZPersistentObject class and it does not appear possible to achieve what you want without patching the eZPersistentObject class or overriding the storeObject() function in your class.
You must be logged in to post messages in this topic!