Symfony 2アプリにSonataバンドル(ユーザー、管理者など)をいくつかインストールしましたが、しばらく使用した後、私は好きではなく、削除したいと決めました。Sonataバンドルの削除
私はcomposer.jsonファイルとAppKernel.phpファイルを更新し、Sonataと何かを削除しました。また、関連するルート、設定、セキュリティファイルエントリをすべて削除しました。ただし、データベーススキーマの更新中に問題が発生しました。
私は1つを実行するたびに、私は次のエラーを取得する:
[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 lis
t of all the known types with \Doctrine\DBAL\Types\Type::getTypeMap(). If t
his error occurs during database introspection then you might have forgot t
o register all database types for a Doctrine Type. Use AbstractPlatform#reg
isterDoctrineTypeMapping() or have your custom types implement Type#getMapp
edDatabaseTypes(). If the type name is empty you might have a problem with
the cache or forgot some mapping information.
私は、これはソナタバンドルのいずれかの教義の設定から知っている:
# Doctrine Configuration doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
#types:
# json: Sonata\Doctrine\Types\JsonType
あなたが見ることができるように、私は」これをコメントアウトしても、引き続きエラーが発生しています。
これはまだ参照されている場所をトラッキングするのに問題があります。
エンティティの1つの列の型として 'json'を使用しないでください。 – cheesemacfly