Simple Example of Custom Annotations using Symfony

2019-06-16 01:54发布

问题:

I am familiar with the Doctrine Documentation about custom annotations, but I am looking for a simple example.

I would like to create an entry in a audit table using an annotation (user, date, action, etc.) when a user creates or updates a widget.

Can you point me to a simple example?

回答1:

Here is a good example of using Symfony2 with Doctrine Common in order to create powerful annotations.