Questions & Feedback
Found a typo or an error?
Want to improve this document? Edit it.
Need support or have a technical question?
Post to the user mailing-list.
Master Symfony2 fundamentals
Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com
Symfony hosting done right
ServerGrove, outstanding support at the right price for your Symfony hosting needs.
servergrove.com
Discover the SensioLabs Support
Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony
sensiolabs.com
2.0 version
How to use Doctrine Extensions: Timestampable, Sluggable, Translatable, etc.
Caution: You are browsing the documentation for Symfony version 2.0 which is not maintained anymore.
If some of your projects are still using this version, consider upgrading.
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.
One library in particular - the DoctrineExtensions library - provides integration functionality for Sluggable, Translatable, Timestampable, Loggable, Tree and Sortable behaviors.
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:
- Use the StofDoctrineExtensionsBundle, which integrates the above library.
- Implement this services directly by following the documentation for integration with Symfony2: Install Gedmo Doctrine2 extensions in Symfony2





is a trademark of Fabien Potencier. All rights reserved.