From a5a2751e291274e4c0014ab7493f5908b87b966c Mon Sep 17 00:00:00 2001 From: romanb Date: Tue, 10 Oct 2006 16:35:32 +0000 Subject: [PATCH] Ticket: 150 --- .../Advanced components - Validators - More Validation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/codes/Advanced components - Validators - More Validation.php b/manual/codes/Advanced components - Validators - More Validation.php index cba2eec47..1ed56c92b 100644 --- a/manual/codes/Advanced components - Validators - More Validation.php +++ b/manual/codes/Advanced components - Validators - More Validation.php @@ -18,8 +18,8 @@ class Email extends Doctrine_Record { } protected function validate() { if ($this->address !== 'the-only-allowed-mail@address.com') { - // syntax: add(, ) - $this->errorStack->add('address', 'myCustomValidationTypeError'); + // syntax: add(, ) + $this->errorStack->add('address', 'myCustomErrorCode'); } } }