2010/11/24 Ases <[email protected]>:
> 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 namespace prefixes in YAML and XML files as well
# Application/MyBundle/Resources/config/validation.yml
namespaces:
mybundle: Application\MyBundle\Component\Validator\Constraints\
Application\MyBundle\Entity\Anything:
getters:
address:
- NotBlank: ~
- "mybundle:IpAddress": ~
Don't forget the quotes.
2011/1/20 cestcri <[email protected]>:
> If anybody has the same troubles or approaches, please give a shout.
> Somehow this custom validation topic has to be mastered...
Can you show some code?
Bernhard
--
Software Architect & Engineer
Blog: http://webmozarts.com
Twitter: http://twitter.com/webmozart
--
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 this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en