Hi all,

I have just changed the way we use annotations for validation.

To avoid naming collision, we have decided to use aliases for all annotations used in Symfony2.

So, as of today, instead of using this:

    /**
     * @Validation({...@datetime()})
     */

You need to use this:

    /**
     * @validation:DateTime()
     */

As you can see, the main Validation annotation is not needed anymore, but still supported (useful when you need to use the same annotation class twice in the same phpdoc block):

    /**
     * @validation:Validation({...@validation:DateTime()})
     */

Commit is here:

http://github.com/fabpot/symfony/commit/0fc8906feb5865705dfd61c31e871420dcec2bd3

Jon will also change the Doctrine annotation to use the 'orm' prefix in the coming days.

Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.org | fabien.potencier.org
Tél: +33 1 40 99 80 80

--
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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to