我想在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',我会尽力为您提供答案,非常感谢 –