mabetiz / entity-fragment
Reusable traits for Symfony Entities
v1.0.0-beta
2018-04-30 10:21 UTC
Requires
- php: ^7.1
- doctrine/orm: ^2.6
- gedmo/doctrine-extensions: ^2.4
This package is not auto-updated.
Last update: 2025-01-04 00:39:26 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)