PHPackages                             fsa/doctrine-postgres-types - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. fsa/doctrine-postgres-types

ActiveLibrary[Database &amp; ORM](/categories/database)

fsa/doctrine-postgres-types
===========================

Provide some common postgres types for doctrine

0164PHP

Since Mar 29Pushed 2y agoCompare

[ Source](https://github.com/fsa/doctrine-postgres-types)[ Packagist](https://packagist.org/packages/fsa/doctrine-postgres-types)[ RSS](/packages/fsa-doctrine-postgres-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Provides Common Postgres Types for Doctrine
-------------------------------------------

[](#provides-common-postgres-types-for-doctrine)

[![Build Status](https://camo.githubusercontent.com/c3c0bc16a8dbb79cbe6c267135732b3b8b3ad8df75308e0343776fbca72f7244/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6f70656e736f66742f646f637472696e652d706f7374677265732d74797065732e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/opensoft/doctrine-postgres-types)

Provides Doctrine Type classes for common postgres types

### Installation

[](#installation)

```
composer require opensoft/doctrine-postgres-types
```

### Usage

[](#usage)

#### Using with Symfony2 Doctrine Configuration

[](#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

[](#using-with-doctrine)

```
