[TYPO3-mvc] extbase/fluid: validating and manipulating data before saving?
S.Korth
s.korth at dms-arts.com
Thu May 13 00:43:40 CEST 2010
Michael Sauter schrieb:
> On 12.05.10 20:35, Sebastian Kurfürst wrote:
>> Hey Michael,
>>
>>> afaik this at least doesn't work in FLOW3, see
>>> http://forge.typo3.org/issues/show/4268 for more information. If this
>>> works in Extbase, maybe FLOW3 should be updated as well?
>> I'm quite sure it works in Extbase, and I think it should also work in
>> FLOW3 (the bug is already quite old).
>>
>> Greets,
>> Sebastian
>
> Hi Sebastian,
>
> thanks for the info, I tried it again now. And well, it kinda works ;)
> It doesn't throw an exception if you pass the string from the form to a
> DateTime property, but it doesn't convert the string to a DateTime
> property. This means you can't use the DateTime validator and need to
> convert the string to a DateTime object in the setter.
>
> Is this different to the behaviour in extbase?
>
> ~michael
Hey Michael,
for special cases you can inherit the Abstract validator and build a new
one for your Model. It needs more time to implement, but you didn't need
the setter.
Sascha
More information about the TYPO3-project-typo3v4mvc
mailing list