我安裝了幾個對我的Symfony 2的應用程序索納塔束(用戶,管理員等),但它們使用了一段時間後,我決定,我不喜歡他們,並希望將其刪除。刪除索納塔捆綁
我已經更新了我composer.json和AppKernel.php文件,刪除任何與索納塔。我還刪除了所有相關的路由,配置和安全文件條目。但是,我現在無法更新數據庫模式。
我碰到下面的錯誤,每當我運行一個:
[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
正如你所看到的,我我評論說,我仍然繼續得到錯誤。
我無法追蹤這仍然引用的位置。
不要使用'json'作爲實體中某一列的類型嗎? – cheesemacfly