[TYPO3-mvc] Extbase and setting a date property to null via forms

Henjo Hoeksma me at henjohoeksma.nl
Thu Oct 18 12:22:40 CEST 2012


Hi Falk,

I have read something here in this list about this before. You might want to try and search for that.

Anyways: it might help if you share some code of your model (property, getter & setter).

You are talking in your first post about a DateTime object - so... ;-)

Henjo

On Oct 17, 2012, at 3:51 PM, Falk Kühnel <fk at cogitatio.de> wrote:

> Hi Henjo!
> 
>> can't you allow it to be NULL in your domain model?
> 
> Well, I dont know how. I can set null programatically, but not through a form.
> 
>> NULL is not a DateTime object so it won't validate...
> 
> I have set no validation annotation, and the setter has no typehint set either. So i am a bit lost, where the formprocessing is handled and where the empty string for a dateTime object is interpreted, so that the property is not set, when an empty string is sent.
> 
> 
> 
> Liebe Grüße
> Falk Kühnel
> 
> -- 
> cogitatio - Ihr kompetenter Medienpartner
> 
> Am Lappenweiher 3
> 53127 Bonn
> 
> fk at cogitatio.de
> Tel: 0228 - 3693699
> www.cogitatio.de
> 
> 
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list