This library adds or override some Doctrine DBAL types. Some types fixes issues with some database engines.
<?php
use Doctrine\DBAL\Types\Type;
Type::addType('tbbc_pgsql_binary_safe_array', "Tbbc\\Doctrine\\DBAL\\Pgsql\\Types\\BinarySafeArrayType");
Type::addType('tbbc_pgsql_binary_safe_object', "Tbbc\\Doctrine\\DBAL\\Pgsql\\Types\\BinarySafeObjectType");
# config.yml
doctrine:
dbal:
types:
tbbc_pgsql_binary_safe_array: "Tbbc\\Doctrine\\DBAL\\Pgsql\\Types\\BinarySafeArrayType"
tbbc_pgsql_binary_safe_object: "Tbbc\\Doctrine\\DBAL\\Pgsql\\Types\\BinarySafeObjectType"
<entity name="My\Entity" table="my_entity">
<field name="myObject" type="tbbc_pgsql_binary_safe_object" />
<field name="myArray" type="tbbc_pgsql_binary_safe_array" />
</entity>
Using Composer, just run:
$ composer require tbbc/doctrine-dbal-pgsql-types
Or add it manually to your composer.json
file:
{
"require": {
"tbbc/doctrine-dbal-pgsql-types": "dev-master"
}
}
And run composer update
.
First make sure you have installed all the dependencies, run:
$ composer install --dev
then, run the test from within the root directory:
$ vendor/bin/phpunit
- Take a look at the list of issues.
- Fork
- Write a test (for either new feature or bug)
- Make a PR
- Benjamin Dulau - benjamin@thebigbrainscompany.com
The Big Brains Company - Doctrine DBAL Types
is licensed under the MIT License - see the LICENSE file for details