[TYPO3-mvc] How to delete a date entry
Ulrich Fischer
ulrich-fischer at gmx.net
Sun Mar 11 16:55:37 CET 2012
Hi Xavier and Sebastian,
you have both been right.
Sebastian Schreiber schrieb am 08.03.2012 22:25:
> what about settings it to NULL => setMyDate(NULL) ?
Xavier Perseguers schrieb am 09.03.2012 08:57:
> There's a trick I usually do for these cases:
> public function setSomedate(DateTime $somedate = NULL) {
> }
A value of NULL is perfectly OK in addition to type hinting.
Greetings
Ulrich
--
http://www.sunfish.de
More information about the TYPO3-project-typo3v4mvc
mailing list