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
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
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
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
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
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
> 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
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