我想在Magento 1.7.0.0中設置一個自定義實體,跟在alan storms article about it之後,但是通過這個簡單的安裝腳本,它告訴我「無法創建表: eavblog_posts」。Magento eav實體設置失敗 - 無法創建表
我的安裝腳本是deadsimple,看起來像這樣:
<?php
$installer = $this;
$installer->addEntityType('complexworld_eavblogpost',
Array(
'entity_model'=>'complexworld/eavblogpost',
'attribute_model'=>'',
'table'=>'complexworld/eavblogpost',
'increment_model'=>'',eav/entity_increment_numeric
'increment_per_store'=>'0'
));
$installer->createEntityTables(
$this->getTable('complexworld/eavblogpost')
);
我怎樣才能讓我的安裝腳本的工作?這是一個已知的magento錯誤嗎?
對不起,我認爲計劃的評論是不明確的。代碼如下'increment_model'=>'','increment_per_store'=>'0',我會盡力爲您提供答案,非常感謝 –