Skip to content

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages