[TYPO3-mvc] How to delete a date entry

Ulrich Fischer ulrich-fischer at gmx.net
Thu Mar 8 20:27:11 CET 2012


Hi,

if a dateTime field is set

$object->setMydate('0');
or
$object->setMydate('');

the former value is deleted in the database, but an error is caused:
"Argument 1 passed to 'mydate' must be an instance of DateTime, string given"

Is there an "error free way" to delete a DateTime entries?

Thank you for any advice

Ulrich

-- 
http://www.sunfish.de


More information about the TYPO3-project-typo3v4mvc mailing list