2017 © Pedro Peláez
 

library doctrine-dbal-pgsql-types

Doctrine types or fixed types for PostgreSQL.

image

tbbc/doctrine-dbal-pgsql-types

Doctrine types or fixed types for PostgreSQL.

  • Saturday, February 15, 2014
  • by tbbc
  • Repository
  • 6 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

The Big Brains Company - Doctrine DBAL Pgsql Types

Build Status, (*1)

This library adds or override some Doctrine DBAL types. Some types fixes issues with some database engines., (*2)

Quick Start

Registering Types in Doctrine DBAL

<?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");

Registering Types in a Symfony2 application

# 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"

Mapping

<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>

Installation

Using Composer, just run:, (*3)

$ composer require tbbc/doctrine-dbal-pgsql-types

Or add it manually to your composer.json file:, (*4)

{
  "require": {
    "tbbc/doctrine-dbal-pgsql-types": "dev-master"
  }
}

And run composer update., (*5)

Run the test

First make sure you have installed all the dependencies, run:, (*6)

$ composer install --dev

then, run the test from within the root directory:, (*7)

$ vendor/bin/phpunit

Contributing

  1. Take a look at the list of issues.
  2. Fork
  3. Write a test (for either new feature or bug)
  4. Make a PR

Authors

  • Benjamin Dulau - benjamin@thebigbrainscompany.com

License

The Big Brains Company - Doctrine DBAL Types is licensed under the MIT License - see the LICENSE file for details, (*8)

The Versions

15/02 2014

dev-master

9999999-dev

Doctrine types or fixed types for PostgreSQL.

  Sources   Download

MIT

The Requires

 

The Development Requires

postgresql doctrine dbal postgre doctrine-types