fhermann / doctrine-trait
A set of reusable trait for Doctrine
1.0.1
2019-03-06 15:16 UTC
Requires
- php: ^7.1.3
- doctrine/orm: ^2.5.11
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-07 08:57:22 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