fhermann / doctrine-trait
A set of reusable trait for Doctrine
Installs: 417
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/fhermann/doctrine-trait
Requires
- php: ^7.1.3
- doctrine/orm: ^2.5.11
This package is auto-updated.
Last update: 2025-10-07 07:06:53 UTC
README
A set of useful trait to compose Doctrine entities. At the moment the package include following traits:
- LocalizableEntity : Localization of an entity based on its coordinate.
- SlugableEntity : Add a name and a slug property to an entity and compute the slug based on the name with lifecycle callbacks.
- TimestampableEntity : Add a createdAt and updatedAt property and update them with lifecycle callbacks.
Warning
The following traits need to add lifecycle callbacks to the hosting entity:
- SlugableEntity
- TimestampableEntity