2010-11-19 10 views
1

私は見出しテーブル/モデルを持っていますし、 "見出し"モジュールも持っています。プライマリキーのないモデルのモジュールを生成できません

Heading: 
    connection: doctrine 
    tableName: heading 
    columns: 
    id: 
     type: integer(8) 
     fixed: false 
     unsigned: false 
     primary: true 
     autoincrement: true 
    referenced_table_name: 
     type: string(255) 
     fixed: false 
     unsigned: false 
     primary: false 
     notnull: true 
     autoincrement: false 
    column_name: 
     type: string(255) 
     fixed: false 
     unsigned: false 
     primary: false 
     notnull: true 
     autoincrement: false 
    label: 
     type: string(255) 
     fixed: false 
     unsigned: false 
     primary: false 
     notnull: true 
     autoincrement: false 
    position: 
     type: integer(4) 
     fixed: false 
     unsigned: true 
     primary: false 
     notnull: true 
     autoincrement: false 
    import_profile_id: 
     type: integer(8) 
     fixed: false 
     unsigned: false 
     primary: false 
     notnull: true 
     autoincrement: false 
    note: 
     type: string() 
     fixed: false 
     unsigned: false 
     primary: false 
     notnull: true 
     autoincrement: false 
    created_at: 
     type: timestamp(25) 
     fixed: false 
     unsigned: false 
     primary: false 
     default: '0000-00-00 00:00:00' 
     notnull: true 
     autoincrement: false 
    updated_at: 
     type: timestamp(25) 
     fixed: false 
     unsigned: false 
     primary: false 
     default: '0000-00-00 00:00:00' 
     notnull: true 
     autoincrement: false 
    relations: 
    ImportProfile: 
     local: import_profile_id 
     foreign: id 
     type: one 
    TotalFromFile: 
     local: id 
     foreign: heading_id 
     type: many 
:見出しのための私のschema.ymlのは、このようになりますので

Cannot generate a module for a model without a primary key (Heading) 

これは私には奇妙です:私は、過去にうまく働いた見出しモジュール、に行くとき、それは今私にこのエラーが発生します

主キー注:

columns: 
    id: 
     type: integer(8) 
     fixed: false 
     unsigned: false 
     primary: true 
     autoincrement: true 

私はそれがthis other problem I'm havingとは何かを持っている疑いがあります。何か案は?

+0

他のスレッドからこれを続けます...廃止されたモデルを削除するために "symfony doctrine:clean-model-files"を実行しましたか?それは物事をまったく前進させますか? – Tom

答えて

0

私がHeadingTable::getTables()HeadingTable::getColumns()を定義していたということが分かりました。ドクトリンはそれを好まなかった。

関連する問題