Simple Example of Custom Annotations using Symfony2

18,333

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

Share:
18,333
Upperstage
Author by

Upperstage

Interests include Java, JavaScript, Spring, Ruby, Rails, web app design

Updated on June 12, 2022

Comments

  • Upperstage
    Upperstage almost 2 years

    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?

  • fsenart
    fsenart almost 12 years
    I don't know if it is sufficient for your needs. Otherwise feel free to explain more concisely your problem and I will provide you more explanations.