diff --git a/bin/doctrine.php b/bin/doctrine.php index 91986c6286..63bb135aae 100644 --- a/bin/doctrine.php +++ b/bin/doctrine.php @@ -47,10 +47,12 @@ Type::overrideType( Database::getUTCDateTimeTypeClass() ); -/*Type::addType( - 'json', - 'Sonata\Doctrine\Types\JsonType' -);*/ +if (!Type::hasType('json')) { + Type::addType( + 'json', + 'Sonata\Doctrine\Types\JsonType' + ); +} $commands = array( new \Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand(),