sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Unknown column type json requested #811

Closed vazgen closed 12 years ago

vazgen commented 12 years ago

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.

rande commented 12 years ago

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

Glideh commented 12 years ago

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 ?

Glideh commented 12 years ago

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
simplechris commented 12 years ago

@Glideh thanks

Raulken commented 11 years ago

thx @Glideh

swis commented 11 years ago

thx @Glideh

JeppeMariagerLam commented 11 years ago

Thank you @Glideh

ZeeAgency commented 11 years ago

Thanks @Glideh

psaunders88 commented 10 years ago

thanks @Glideh

halfa commented 9 years ago

thanks @Glideh

birchandra commented 8 years ago

for Symfony3, insert the following code in config.yml

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