【问题标题】:doctrine:build-schema error学说:构建模式错误
【发布时间】:2011-02-04 11:24:14
【问题描述】:

当我尝试运行 symfony dictionary:build-schema 命令来获取 yaml 文件的架构结构时,出现错误:

    SQLSTATE[42P01]: Undefined table: 7 ERROR:  missing FROM-clause entry for table "t"                                               
  LINE 6: ...                                                  t.typtype ...                                                        
                                                               ^. Failing Query: "SELECT                                            
                                                       ordinal_position as attnum,                                                  
                                                       column_name as field,                                                        
                                                       udt_name as type,                                                            
                                                       data_type as complete_type,                                                  
                                                       t.typtype AS typtype,                                                        
                                                       is_nullable as isnotnull,                                                    
                                                       column_default as default,                                                   
                                                       (                                                                            
                                                         SELECT 't'                                                                 
                                                           FROM pg_index, pg_attribute a, pg_class c, pg_type t                     
                                                           WHERE c.relname = table_name AND a.attname = column_name                 
                                                           AND a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid           
                                                           AND c.oid = pg_index.indrelid AND a.attnum = ANY (pg_index.indkey)       
                                                           AND pg_index.indisprimary = 't'                                          
                                                           AND format_type(a.atttypid, a.atttypmod) NOT LIKE 'information_schema%'  
                                                       ) as pri,                                                                    
                                                       character_maximum_length as length                                           
                                                     FROM information_schema.COLUMNS                                                
                                                     WHERE table_name = 'application'                                               
                                                     ORDER BY ordinal_position"

我正在学习 symfony/doctrine。任何建议都将受到高度赞赏。

Symfony 1.4.8 版

【问题讨论】:

标签: symfony1 doctrine


【解决方案1】:

这个问题似乎已经在 Symphony Tracker 上得到解决,http://trac.symfony-project.org/ticket/9152 上发布的补丁解决了这个问题。

【讨论】:

    猜你喜欢
    • 2011-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多