ajgl/doctrine-dbal-pgsql-types

Custom PostgreSQL types

Installs: 1 245

Dependents: 0

Stars: 3

Watchers: 2

Forks: 3

Language: PHP

0.1.2 2014-08-14 10:08 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

  • Travis CI: Build Status
  • Poser Latest Stable Version: Latest Stable Version
  • Poser Latest Unstable Version Latest Unstable Version
  • Poser Total Downloads Total Downloads
  • Poser Monthly Downloads Montly Downloads
  • Poser Daily Downloads Daily Downloads
  • Poser License License
  • Scrutinizer Quality Scrutinizer Code Quality
  • Scrutinizer Code Coverage Code Coverage
  • SensionLabs Insight Quality SensioLabsInsight
  • VersionEye Dependency Status Dependency Status

About

AjglDoctrineDbalPgsqlTypes is an ajgarlag initiative.

Reporting an issue or a feature request

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