[TYPO3-mvc] How to delete a date entry

Sebastian Schreiber me at schreibersebastian.de
Thu Mar 8 23:12:10 CET 2012


Am 08.03.2012 23:05, schrieb Ulrich Fischer:
> Hi Sebastian,
>
> Sebastian Schreiber schrieb am 08.03.2012 22:25:
>> what about settings it to NULL => setMyDate(NULL) ?
>> Give it a try.
>
> No solution, it must be an instance of DateTime
>
> Core: Error handler (FE): PHP Catchable Fatal Error:
> Argument 1 must be an instance of DateTime, null given
>
>
>
> Ulrich
>
Hi Ulrich,
i guess you used typehinting in your setter Method. Right?
Remove the typehinting in your setter.
So you are not forced to define a DateTime Instance.

-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Schanzenstraße 27, Schlosserei 4
D-51063 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 217 / 5269 / 4675



More information about the TYPO3-project-typo3v4mvc mailing list