2012-03-15 5 views
0

2データベース:Doctrine2 + CodeIgniterの私はすでに場所での大規模なスキーマを持つMySQLデータベースを持っているとDoctrine2</p>エクスポートYMLファイルの <p>例えば.ymlファイルに構造をエクスポートするためにMySQLのワークベンチ用のプラグインを使用したマッピング

twitter: 
     columns: 
     TwitterId: 
      type: integer(4) 
      primary: true 
      notnull: true 
     UserId: 
      type: integer(4) 
      notnull: true 
     relations: 
     User: 
      class: user 
      local: UserId 
      foreign: UserId 
      foreignAlias: twitters 
     indexes: 
     FK_Twitter_User: 
      fields: [UserId] 

私はDoctrine2 CLIを使用しており、Doctrine2を使ってモデルやエンティティなどをマップして自動生成する方法を知りましたか?

答えて

0

私はこれを理解しました。私は

php doctrine-cli.php orm:convert-mapping --from-database yml /(your destination folder)/ 

を走った

また、すでに場所のDBスキーマの私に基づいて自動生成されたエンティティクラスを

関連する問題