Skip to content

epoplive/EasyBib_DoctrineTypes

 
 

Repository files navigation

[WIP] Support for PostgreSQL's hstore type for Doctrine

Build Status

Add the following to your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "http://github.com/easybib/EasyBib_DoctrineTypes"
        }
    ]
}

Then install/update:

./composer.phar install

Finally (assuming the above worked):

use Doctrine\DBAL\Types\Type;
Type::addType('hstore', 'EasyBib\Doctrine\Type\Hstore');

/* ... more setup here ... */
$entityManager->getConnection()->getDatabasePlatform()->registerDoctrineTypeMapping('hstore', 'hstore');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%