Ticket: 150
This commit is contained in:
parent
171226d532
commit
a5a2751e29
@ -18,8 +18,8 @@ class Email extends Doctrine_Record {
|
|||||||
}
|
}
|
||||||
protected function validate() {
|
protected function validate() {
|
||||||
if ($this->address !== 'the-only-allowed-mail@address.com') {
|
if ($this->address !== 'the-only-allowed-mail@address.com') {
|
||||||
// syntax: add(<fieldName>, <error identifier>)
|
// syntax: add(<fieldName>, <error code>)
|
||||||
$this->errorStack->add('address', 'myCustomValidationTypeError');
|
$this->errorStack->add('address', 'myCustomErrorCode');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user