Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajgarlag/ajgldoctrinedbalpgsqltypes
Some Doctrine Custom Types for some PosgreSQL data types
https://github.com/ajgarlag/ajgldoctrinedbalpgsqltypes
Last synced: 9 days ago
JSON representation
Some Doctrine Custom Types for some PosgreSQL data types
- Host: GitHub
- URL: https://github.com/ajgarlag/ajgldoctrinedbalpgsqltypes
- Owner: ajgarlag
- License: mit
- Created: 2012-08-21T10:45:43.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T07:42:40.000Z (8 months ago)
- Last Synced: 2024-10-14T08:40:26.929Z (about 1 month ago)
- Language: PHP
- Size: 48.8 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AjglDoctrineDbalPgsqlTypes
==========================This component allows you to manage some native [PostgreSQL](http://www.postgresql.org)
data types with the Doctrine [DBAL](http://www.doctrine-project.org/projects/dbal.html) component.Usage
-----To use the new types you shoud register them using the [Custom Mapping Types](https://doctrine-dbal.readthedocs.org/en/latest/reference/types.html#custom-mapping-types) feature.
```php
\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](http://symfony.com/doc/current/cookbook/doctrine/dbal.html#registering-custom-mapping-types) in the `config.yml` file.
```yml
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
------* **GitHub Actions**: [![Build Status](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes/workflows/test/badge.svg?branch=master)](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes/actions)
* **Poser Latest Stable Version:** [![Latest Stable Version](https://poser.pugx.org/ajgl/doctrine-dbal-pgsql-types/v/stable.png)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
* **Poser Latest Unstable Version** [![Latest Unstable Version](https://poser.pugx.org/ajgl/doctrine-dbal-pgsql-types/v/unstable.png)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
* **Poser Total Downloads** [![Total Downloads](https://poser.pugx.org/ajgl/doctrine-dbal-pgsql-types/downloads.png)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
* **Poser Monthly Downloads** [![Montly Downloads](https://poser.pugx.org/ajgl/doctrine-dbal-pgsql-types/d/monthly.png)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
* **Poser Daily Downloads** [![Daily Downloads](https://poser.pugx.org/ajgl/doctrine-dbal-pgsql-types/d/daily.png)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
* **Poser License** [![License](https://poser.pugx.org/ajgl/csv/license.png)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
* **SensionLabs Insight Quality** [![SensioLabsInsight](https://insight.sensiolabs.com/projects/4394a7cb-4066-4329-80fe-b74ed571c411/mini.png)](https://insight.sensiolabs.com/projects/4394a7cb-4066-4329-80fe-b74ed571c411)About
-----AjglDoctrineDbalPgsqlTypes is an [ajgarlag](http://aj.garcialagar.es) initiative.
Reporting an issue or a feature request
---------------------------------------Issues and feature requests are tracked in the [Github issue tracker](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes/issues).