[TYPO3-mvc] Validation in TCA and extbase
Jochen Rau
jochen.rau at typoplanet.de
Tue Oct 13 12:05:06 CEST 2009
Hi Jigal.
Sebastian Kurfürst wrote:
>> Well, not from a code point of view. They have something to do with
>> eachother: they work on the same record!
> Yep, sure!
The developer has to keep the validation rules in $TCA 'compatible' to
those defined by @validate. Let's assume we have a property defined with
"@validate NotEmpty" and forgot to add "'eval' => 'required'" to the
$TCA. In this case, leaving the field in BE empty will result in an
unvalid Object.
I think we have to add a comment to the guidelines.
Thanks for pointing that out.
Regards
Jochen
--
Every nit picked is a bug fixed
More information about the TYPO3-project-typo3v4mvc
mailing list