[TYPO3-mvc] Validation in TCA and extbase
Jigal van Hemert
jigal at xs4all.nl
Tue Oct 13 16:53:55 CEST 2009
Hi Jochen,
Jochen Rau wrote:
> 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.
This is unfortunately not always possible. There is no 'eval' => 'email'
AFAIK and maybe some 'eval' validation options are not (yet) available
in extbase (FLOW3).
I'll see if I can compile a list of validators for TCA and extbase. I am
willing to make a patch for the core to add "missing" eval rules to TCA
(I only need some possitive votes for that patch ;-) )
Also the validation rules themselves have to be in sync (is
alphanumerical really [a-zA-Z0-9]* ?? What about diacriticals?)
Kind regards,
--
Jigal van Hemert.
More information about the TYPO3-project-typo3v4mvc
mailing list