1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Ticket: 150

This commit is contained in:
romanb 2006-10-10 16:35:32 +00:00
parent 171226d532
commit a5a2751e29

View File

@ -18,8 +18,8 @@ class Email extends Doctrine_Record {
}
protected function validate() {
if ($this->address !== 'the-only-allowed-mail@address.com') {
// syntax: add(<fieldName>, <error identifier>)
$this->errorStack->add('address', 'myCustomValidationTypeError');
// syntax: add(<fieldName>, <error code>)
$this->errorStack->add('address', 'myCustomErrorCode');
}
}
}