erichard / postgresql-doctrine-type
Doctrine implementation of some useful PostgreSQL data types
Installs: 21 663
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-12-18 21:50:39 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