[TYPO3-mvc] Validator validates twice

Sebastian Kurfürst sebastian at typo3.org
Sun May 23 09:55:48 CEST 2010


Hey,

yep, that's all correct :)

>        * @param Tx_Xchange_Domain_Model_User $user
>        * @validate $user Tx_Xchange_Domain_Validator_UserValidator

If you declare the type as Tx_Xchange_Domain_Model_User, then, if a
validator exists with the name
Tx_Xchange_Domain_Validator_UserValidator, it is automatically executed.
So, that's the first execution; and the second one is the @validate
annotation above.

Just remove the @validate annotation above, and all should be fine.

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list