[TYPO3-mvc] DataTime Setter

Thomas Kieslich thomaskieslich at gmx.net
Sat Mar 6 22:08:23 CET 2010


Hi
I have:
/**
 * arrival
* @var DateTime
 */
protected $arrival;

in my Model. I fill the field in Form with a DatePicker and int works great. 
But if i delete the Date in Form, nothing happend. I found out the the Setter 
is not called if arrival is null.
At the Moment i use:
if(!$post['arrival']) $updatedBooking->setArrival(NULL);

in the update Action of the Controller. No nice but it works. Is this a Bug 
or is there a better solution?

Thanks Thomas




More information about the TYPO3-project-typo3v4mvc mailing list