Mus*_*faB 3 php symfony doctrine-orm
您好,当我尝试更新 Symphony 应用程序中的学说方案时,我刚刚收到错误。我跑
php app/console doctrine:schema:update --force
Run Code Online (Sandbox Code Playgroud)
并收到错误此错误
[Doctrine\DBAL\DBALException]
Unknown column type "mystoragetype" 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::getTypeMap().
If this error occurs during database introspection then you might have forgot to register all database types for a Doctrine Type.
Use AbstractPlatform#registerDoctrineTypeMapping() 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.
Run Code Online (Sandbox Code Playgroud)
我在项目中找不到与“mystoragetype”相关的任何内容,也尝试添加类型但没有任何反应。你能弄清楚为什么我会收到这个错误吗?
Doctrine 向具有自定义类型的字段添加注释:类似:(DC2Type:mystoragetype)。我认为您使用该类型生成了架构,并且必须从实体中删除类型。但评论仍保留在数据库中。
| 归档时间: |
|
| 查看次数: |
5327 次 |
| 最近记录: |