0

MagentoConfig.xmlファイルに2つのテーブルを追加しました。Magentoで複数のテーブルを追加する正しい方法を教えてください。

               <tiger_mysql4>
         <class>Scott_Tiger_Model_Mysql4</class>
         <entities>
             <tiger>
               <table>shop_data</table>
                </tiger>
                              <tiger>
                               <table>Cust_college</table>
                                </tiger>
          </entities>
    </tiger_mysql4>
4

1 に答える 1

0
<tiger_mysql4>
     <class>Scott_Tiger_Model_Mysql4</class>
     <entities>
         <tiger_shop>
              <table>shop_data</table>
         </tiger_shop>
         <tiger_cust>
              <table>Cust_college</table>
         </tiger_cust>
     </entities>
</tiger_mysql4>

モデル名は一意である必要があります。あなたの場合はtiger2回でした。

于 2012-08-08T08:48:59.280 に答える