[symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread cestcri
Thanks Stof, I just found it... but it is good to know that I would have solved the issue anyway thanks to your eagle eyes ;) Best regards, Christian On Jan 20, 4:41 pm, stof wrote: > On Thu, 20 Jan 2011 07:33:42 -0800 (PST), cestcri > wrote: > > > > > Hi Bernhard, > > > thanks for your quick r

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread stof
On Thu, 20 Jan 2011 07:33:42 -0800 (PST), cestcri wrote: > Hi Bernhard, > > thanks for your quick reply. Here is what I have: > > The validation setup in the entity class > > /** > * @var text $locationName > * @myvalidation:Location(property="locationName", > message="Geocoding o

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread Bernhard Schussek
Could it be that the "namespace" definition of your Location class is wrong? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to t

[symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread cestcri
Hi Bernhard, thanks for your quick reply. Here is what I have: The validation setup in the entity class /** * @var text $locationName * @myvalidation:Location(property="locationName", message="Geocoding of location failed!") */ private $locationName; The setup in config.y

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread Bernhard Schussek
2010/11/24 Ases : > From annotations works fine, but how I would have to call it from > validation.yml? > > #Application/MyBundle/Resources/config/validation.yml > Application\MyBundle\Entity\Anything: >  getters: >    address: >      - NotBlank: ~ >      - IpAddress: ~ BTW, you can now define nam

[symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2011-01-20 Thread cestcri
Hi Gustavo and Bernhard, thanks for sharing your approach. This thread seems to be the most comprehensive guide to custom validators with Symfony2... nevertheless, I unfortunately don't manage to call my custom validator. Maybe things changed since then, I am currently working with PR5 (directly

Re: [symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2010-11-25 Thread Bernhard Schussek
> From annotations works fine, but how I would have to call it from > validation.yml? You currently have to provide the full namespace there. #Application/MyBundle/Resources/config/validation.yml Application\MyBundle\Entity\Anything: getters: address: - NotBlank: ~ - Aps\Namespace\P

[symfony-users] Re: [Symfony 2] Custom validator is not called on validation

2010-11-24 Thread Ases
Hi Benrnard and everyone. This worked for me too. >From annotations works fine, but how I would have to call it from validation.yml? #Application/MyBundle/Resources/config/validation.yml Application\MyBundle\Entity\Anything: getters: address: - NotBlank: ~ - IpAddress: ~ Thank