Home  >  Article  >  Backend Development  >  对象不存在的有关问题

对象不存在的有关问题

WBOY
WBOYOriginal
2016-06-13 10:23:231331browse

对象不存在的问题
大家有没有遇到过这种情况“Call to a member function getCustomerIdFieldName() on a non-object in ”

------解决方案--------------------
这问题可能是 没有引入需要的类库文件,include引入,仔细查看头部引入或者这个函数getCustomerIdFieldName()定义了没。
------解决方案--------------------

探讨

引用:

这问题可能是 没有引入需要的类库文件,include引入,仔细查看头部引入或者这个函数getCustomerIdFieldName()定义了没。


主要是用print_r($this->_getResource())打印不出类的详细信息。这个是获取那个类的信息的
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn