Thanks for the update, it is always nice to have a quick way to code a
common behavior :)
On 2 oct, 15:34, Fabien Potencier <fabien.potenc...@symfony-
project.com> wrote:
> 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/0fc8906feb5865705dfd61c31e871...
>
> 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 [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-devs?hl=en