Sonataadminbundle: Unknown column type json requested

Created on 8 Jun 2012  路  11Comments  路  Source: sonata-project/SonataAdminBundle

Hello,

I have update this bundle and now get an error:

[Doctrine\DBAL\DBALException]        
Unknown column type json requested.

It seems that I have to install SonataDoctrineExtensions to fix this. Is it required?

Thanks.

Most helpful comment

Ok it was in autoload.php

__DIR__.'/../sonata-doctrine-extensions/src',

To be replaced by

__DIR__.'/../vendor/sonata-doctrine-extensions/src',

In the documentation

Also config.yml must specify

doctrine:
    dbal:
    # ...
        types:
            json: Sonata\Doctrine\Types\JsonType

All 11 comments

This is related to the User Bundle, and the issue has been fixed

I have the same issue with all latest versions.
Tried to install SonataDoctrineExtensions but it's not fixing the problem.
What is with the User Bundle ?

Ok it was in autoload.php

__DIR__.'/../sonata-doctrine-extensions/src',

To be replaced by

__DIR__.'/../vendor/sonata-doctrine-extensions/src',

In the documentation

Also config.yml must specify

doctrine:
    dbal:
    # ...
        types:
            json: Sonata\Doctrine\Types\JsonType

@Glideh thanks

thx @Glideh

thx @Glideh

Thank you @Glideh

Thanks @Glideh

thanks @Glideh

thanks @Glideh

for Symfony3, insert the following code in config.yml

doctrine:
    dbal:
        #     ....
        types:
            json: Sonata\Doctrine\Types\JsonType
Was this page helpful?
0 / 5 - 0 ratings