Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 768 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 768 Bytes

[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');