Alright, some more tests: They throw Exceptions: no...@localhost5.com no...@yoxutube.com no...@googlemally.com k...@stackoverflooow.com symf...@symfonyproject.com <-- redirects to symfony-project.com when typed into the browser but still throws exception
They work; notme(at)localhost.com no...@youtube.com no...@googlemail.com k...@stackoverflow.com symf...@symfony-project.com On 22 Apr., 21:48, Adrien Mogenet <adrien.moge...@gmail.com> wrote: > Are you really sure it's due to a wrong domain name ? > I don't know why it would be Doctrine that will throw Exception... > Which email address did you enter ? > > -- > Adrien Mogenethttp://www.tekover.net > > On 22 avr, 20:32, Eric <ericteub...@googlemail.com> wrote: > > > Hi, > > > I just setup my table with > > > --- schema.yml > > email: { type: string(255), email: true } > > --- > > > I generated the module and the validator has been created > > automatically > > > --- Base...Form.php > > $this->setValidators(array( > > 'email' => new sfValidatorEmail(array('max_length' => 255, > > 'required' => false)) > > )); > > --- > > > Now when I submit a valid mail in my form, it works. Also submitting a > > wrong-syntax-mail, the errormessage is printed correctly. > > Now I enter an email which is syntactically correct but the domain > > does not exist, e.g. no...@webbbqwe73.com > > sfValidatorEmail only checks by RegEx, so the mail passes. But in this > > case an exception is thrown: > > > --- > > Validation failed in class sfGuardUserProfile > > 1 field had validation error: > > * 1 validator failed on email (email) > > > at () > > in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/ > > vendor/doctrine/Doctrine/Transaction.php line 265 ... > > > 262. if ($this->_internalNestingLevel == 1) > > { > > 263. $tmp = $this->invalid; > > 264. $this->invalid = array(); > > 265. throw new > > Doctrine_Validator_Exception($tmp); > > 266. } > > 267. } > > 268. if ($this->_nestingLevel == 1) { > > --- > > > Regards > > > Eric --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---