[TYPO3-mvc] validate domain object in own validator

Domi djgarms at gmail.com
Thu Aug 23 03:34:15 CEST 2012


OK found the right solution, I need still to use the deprecated 
$this->errors array:

$this->errors['email'] = new Tx_Extbase_Validation_PropertyError('email');

$this->errors['email']->addErrors(array(new
Tx_Extbase_Validation_Error('User with this email already exists', 
99988776)));

Cheers Dominic


More information about the TYPO3-project-typo3v4mvc mailing list