[Flow] \DateTimeConverter

mario chiari ml at mariochiari.net
Fri Jun 21 20:30:11 CEST 2013


Hi,

On Fri, 2013-06-21 at 12:06 +0200, Bastian Waidelich wrote:
> mario chiari wrote:
> 
...
> >
> >    $this->arguments['father']
> > 	->getPropertyMappingConfiguration()
> > 	->forProperty('sons.1.son_date')
> > 	->setTypeConverterOption('TYPO3\Flow\Property\TypeConverter
> > \DateTimeConverter',\TYPO3\Flow\Property\TypeConverter
> > \DateTimeConverter::CONFIGURATION_DATE_FORMAT,'d-m-Y');
> > 	}
> >
> > Clearly, it is a ugly fix.
> > But I am not able to use something like <sons.*.son_date>. Why? Where
> > should look for a mistake?
> 
> Yes, that should be possible since [1] is resolved (~6 months).

Nope, but I haven't looked at it again.

> 
> If you know that you always have sons.0 and sons.1 I don't think that 
> the hack is too bad,

I need for at most 10 sons (big traditional families :-))

>  but you could also send the date format 
> configuration from the Fluid form by adding a hidden field with the name 
> "dateFormat" (have a look at the DatePickerViewHelper provided by the 
> Form framework [2]).

I'll try, but I would like to understand if/where the .*. solution
breaks down. 

thanks for your reply
cheers
mario



More information about the Flow mailing list