Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown column type json requested #811

Closed
vazgen opened this issue Jun 8, 2012 · 11 comments
Closed

Unknown column type json requested #811

vazgen opened this issue Jun 8, 2012 · 11 comments

Comments

@vazgen
Copy link

vazgen commented Jun 8, 2012

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
Copy link
Member

rande commented Jun 8, 2012

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

@rande rande closed this as completed Jun 8, 2012
@Glideh
Copy link
Contributor

Glideh commented Jun 19, 2012

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
Copy link
Contributor

Glideh commented Jun 19, 2012

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
Copy link

@Glideh thanks

@Raulken
Copy link

Raulken commented Oct 25, 2012

thx @Glideh

1 similar comment
@swis
Copy link

swis commented Jan 20, 2013

thx @Glideh

@JeppeMariagerLam
Copy link

Thank you @Glideh

@ZeeAgency
Copy link

Thanks @Glideh

@psaunders88
Copy link

thanks @Glideh

1 similar comment
@halfa
Copy link

halfa commented Jul 17, 2015

thanks @Glideh

@birchandra
Copy link

birchandra commented Jul 7, 2016

for Symfony3, insert the following code in config.yml

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

ft-1408 pushed a commit to intexsys/SonataAdminBundle that referenced this issue Sep 17, 2021
…roject#811)

The FOSRestBundle might be used for completely different purposes, and also be
configured to use the Symfony serializer instead of the JMS serializer.
The fix here is to check if the JMS serializer bundle is registered, and load
our API services only then.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests