You are browsing the Symfony 4.1 documentation, which changes significantly from Symfony 3.x. If your app doesn't use Symfony 4.1 yet, browse the Symfony 3.4 documentation.
How to use Doctrine Extensions: Timestampable, Sluggable, Translatable, etc.
How to use Doctrine Extensions: Timestampable, Sluggable, Translatable, etc.¶
Doctrine2 is very flexible, and the community has already created a series of useful Doctrine extensions to help you with common entity-related tasks.
The usage for each of these extensions is explained in that repository.
However, to install/activate each extension you must register and activate an Event Listener. To do this, you have two options:
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.