ajgl/doctrine-dbal-pgsql-types

Custom PostgreSQL types

Maintainers

πŸ‘ ajgarlag

Package info

github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes

pkg:composer/ajgl/doctrine-dbal-pgsql-types

Statistics

Installs: 46 056

Dependents: 0

Suggesters: 0

Stars: 5

Open Issues: 0

0.4.2 2025-06-02 08:11 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 3772fd45141a3fcf79a11e239f861ca0f9c7f382

databasedbalposgresqlpsql

This package is auto-updated.

Last update: 2026-05-30 08:16:27 UTC


README

This component allows you to manage some native PostgreSQL data types with the Doctrine DBAL component.

Usage

To use the new types you shoud register them using the Custom Mapping Types feature.

\Doctrine\DBAL\Types\Type::addType('integer[]', 'Ajgl\Doctrine\DBAL\Types\IntegerArrayType');
/* @var $connection \Doctrine\DBAL\Connection */
$connection->getDatabasePlatform()->registerDoctrineTypeMapping('_int4', 'integer[]');

Usage with Symfony Standard Edition

If you want to use this with a Symfony Standard Edition application, you can register the new types in the config.yml file.

doctrine:
 dbal:
 types:
 integer[]: Ajgl\Doctrine\DBAL\Types\IntegerArrayType
 mapping_types:
 _int4: integer[]

License

This component is under the MIT license. See the complete license in the LICENSE file.

Badges

About

AjglDoctrineDbalPgsqlTypes is an ajgarlag initiative.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.