mabetiz / entity-fragment
Reusable traits for Symfony Entities
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mabetiz/entity-fragment
Requires
- php: ^7.1
- doctrine/orm: ^2.6
- gedmo/doctrine-extensions: ^2.4
This package is not auto-updated.
Last update: 2025-12-20 05:23:11 UTC
README
Provides reusable features as Traits for Entities in Symfony 4.
Uses Doctrine.
List of available fragments (Traits)
- CreatedAtUpdatedAtTrait
- \DateTime $createdAt (on create)
- \DateTime $updatedAt (on update)
- StateTrait
- int $state - A static array $availableStates has to be defined in the parent Entity (please, do NOT use the 0 key value)
- StatusTrait
- bool $status (on/off)
ToDo List of fragments
- User (login/pwd)
- People (gender, title, name, firstname, birthdate)
- ContactInfo (phone, mobilephone, email)
- Address (address1, address2, city, zipcode)
- Geolocation (latt, long, alt)