precision-soft / doctrine-type
doctrine custom types
v2.2.3
2026-03-20 21:44 UTC
Requires
- php: >=8.2
- doctrine/dbal: 3.*||4.*
Requires (Dev)
README
You may fork and modify it as you wish.
Any suggestions are welcomed.
Usage
- extend
\PrecisionSoft\Doctrine\Type\Contract\AbstractEnumTypefor enums. - extend
\PrecisionSoft\Doctrine\Type\Contract\AbstractSetTypefor sets.
Symfony
doctrine: dbal: default_connection: master connections: master: url: '%env(resolve:DATABASE_URL)%' server_version: '%env(MYSQL_SERVER_VERSION)%' mapping_types: enum: string set: string types: datetime: \PrecisionSoft\Doctrine\Type\DateTimeType AcmeEnum: \App\Doctrine\Type\AcmeEnum AcmeSet: \App\Doctrine\Type\AcmeSet
Dev
git clone git@github.com:precision-soft/doctrine-type.git cd type ./dc build && ./dc up -d