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

Henjo Hoeksma me at henjohoeksma.nl
Wed Oct 17 14:43:47 CEST 2012


Hi Falk,

can't you allow it to be NULL in your domain model?

NULL is not a DateTime object so it won't validate...

Regards,

Henjo
On Oct 17, 2012, at 11:11 AM, Falk Kühnel <fk at cogitatio.de> wrote:

> Hi!
> 
> I am using a from with a date object in a field.
> Once the date is set, i can change it, but i cannot remove it. Setting the field to an empty string does not remove the date, but leave it as it was.
> 
> How can i change that? Who is responsible for that? It doesnt seem to be the Validator, or the AbstractDomainEntity.
> 
> 
> 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