2017 © Pedro Peláez
 

library doctrine-postgres-types

Provide some common postgres types for doctrine

image

opensoft/doctrine-postgres-types

Provide some common postgres types for doctrine

  • Monday, December 5, 2016
  • by richardfullmer
  • Repository
  • 4 Watchers
  • 56 Stars
  • 95,914 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 23 Forks
  • 1 Open issues
  • 8 Versions
  • 10 % Grown

The README.md

Provides Common Postgres Types for Doctrine

Build Status, (*1)

Provides Doctrine Type classes for common postgres types, (*2)

Installation

composer require opensoft/doctrine-postgres-types

Usage

Using with Symfony2 Doctrine Configuration

# Doctrine Configuration
doctrine:
    dbal:
        types:
            text_array: "Doctrine\\DBAL\\PostgresTypes\\TextArrayType"
            int_array: "Doctrine\\DBAL\\PostgresTypes\\IntArrayType"
            ts_vector: "Doctrine\\DBAL\\PostgresTypes\\TsvectorType"
            ts_query: "Doctrine\\DBAL\\PostgresTypes\\TsqueryType"
            xml: "Doctrine\\DBAL\\PostgresTypes\\XmlType"
            inet: "Doctrine\\DBAL\\PostgresTypes\\InetType"
            macaddr: "Doctrine\\DBAL\\PostgresTypes\\MacAddrType"
        mapping_types:
            _text: text_array
            _int4: int_array
            tsvector: ts_vector
            tsquery: ts_query
            xml: xml
            inet: inet
            macaddr: macaddr

Using with Doctrine

<?php

use Doctrine\DBAL\Types\Type;

Type::addType('text_array', "Doctrine\\DBAL\\PostgresTypes\\TextArrayType");
Type::addType('int_array', "Doctrine\\DBAL\\PostgresTypes\\IntArrayType");
Type::addType('tsvector', "Doctrine\\DBAL\\PostgresTypes\\TsvectorType");
Type::addType('tsquery', "Doctrine\\DBAL\\PostgresTypes\\TsqueryType");
Type::addType('xml', "Doctrine\\DBAL\\PostgresTypes\\XmlType");
Type::addType('inet', "Doctrine\\DBAL\\PostgresTypes\\InetType");
Type::addType('macaddr', "Doctrine\\DBAL\\PostgresTypes\\MacAddrType");

License

Licensed under the MIT License, (*3)

The Versions

05/12 2016

dev-master

9999999-dev

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

31/08 2016

1.3.1

1.3.1.0

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

1.3.0

1.3.0.0

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

23/04 2016

1.2.1

1.2.1.0

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

02/10 2015

1.2.0

1.2.0.0

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

12/05 2015

1.1.0

1.1.0.0

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

14/04 2015

1.0.1

1.0.1.0

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

19/03 2015

1.0.0

1.0.0.0

Provide some common postgres types for doctrine

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires