This component allows you to manage some native PostgreSQL data types with the Doctrine DBAL component.
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[]');
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[]
This component is under the MIT license. See the complete license in the LICENSE file.
- GitHub Actions:
- Poser Latest Stable Version:
- Poser Latest Unstable Version
- Poser Total Downloads
- Poser Monthly Downloads
- Poser Daily Downloads
- Poser License
- SensionLabs Insight Quality
AjglDoctrineDbalPgsqlTypes is an ajgarlag initiative.
Issues and feature requests are tracked in the Github issue tracker.