首页 > 其他 > 详细

magento collection错误:尝试添加的对象无效

时间:2014-03-19 19:51:34      阅读:300      评论:0      收藏:0      [点我收藏+]

magento collection错误:尝试添加的对象无效

 

打印collection发现_itemObjectClass类名不对。

但是程序都统一是CustomerStore,不知道这里为什么变为Customerstore。

为了避免这错误暂时把类名定为:Customerstore。

所以今后开发插件还是要注意这点:类名的骆驼型,避免一个名称中有多个大写字母。

  protected ‘_itemObjectClass‘ => 

string

 ‘Mage_CustomerStore_Model_Customerstore‘ (length=38)
  protected ‘_orders‘ => 
    array (size=0)
      empty
  protected ‘_filters‘ => 
    array (size=0)
      empty
  protected ‘_isFiltersRendered‘ => 

boolean

 false
  protected ‘_curPage‘ => 

int

 1
  protected ‘_pageSize‘ => 

boolean

 false
  protected ‘_totalRecords‘ => null
  protected ‘_isCollectionLoaded‘ => null
  protected ‘_cacheKey‘ => null
  protected ‘_cacheTags‘ => 
    array (size=0)
      empty
  protected ‘_cacheLifetime‘ => 

int

 86400
  protected ‘_flags‘ => 
    array (size=0)

magento collection错误:尝试添加的对象无效,布布扣,bubuko.com

magento collection错误:尝试添加的对象无效

原文:http://www.cnblogs.com/tecliu/p/3611155.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!