は、私はこのdoc folowingてる3.3.6ソナタメディアバンドルのインストールエラー
symfonyの上ソナタメディアバンドルをインストールしようとしている:https://sonata-project.org/bundles/media/3-x/doc/reference/installation.html
をしかし、私は、私は、このコマンドを使用していますエラーが発生していますライン、DBを生成するために:私のconfig.ymlがdocumentatiから取られ
[Doctrine\DBAL\DBALException] Unknown column type "json" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspection then you might have forgot to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineType Mapping() or have your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some mapping information.
:エラーメッセージ
--force更新:PHPのbin /コンソール教義:スキーマをに。私はそのような記事をすべて見直して答えを見つけることができません。このエラーはなぜ発生しますか?あなたが二回教義のセクションを持って、あなたの設定ファイルでdoctrine:
dbal:
types:
json: Sonata\Doctrine\Types\JsonType
を:ヘルプ、私は
私はこの構造を持っています – dmitry76
あなたはdoctrineセクションを2回持っています。それは容認できない。この構成をマージする必要があります。最初のものが適用され、そこにJSONタイプがありません。 – Vladislav
OMG!私は疑念を抱いていましたが、私はシンフォニーには新しいです、ありがとう! – dmitry76