erichard / postgresql-doctrine-type
Doctrine implementation of some useful PostgreSQL data types
Installs: 21 620
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- doctrine/dbal: ^2.6
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2024-10-18 21:34:22 UTC
README
This library add support for useful postgresql types such as Point, DateRange or Arrays.
Usage
In Symfony, you only need to update your DBAL config.
doctrine:
dbal:
types:
jsonb: PostgreSQLDoctrineType\DBAL\Type\JsonType
daterange: PostgreSQLDoctrineType\DBAL\Type\DateRangeType
tsrange: PostgreSQLDoctrineType\DBAL\Type\TsRangeType
varchar_array: PostgreSQLDoctrineType\DBAL\Type\VarcharArrayType
mapping_types:
json_array: jsonb # redefine doctrine json_array to use jsonb
daterange: daterange
tsrange: tsrange