Код: Выделить всё
ZeroBars_Marketplacepayment_Model_Userprofile
< /code>
и скопировал файл userprofile.php < /code> в папку модели моего модуля. Код в UserProfile вызывает коллекцию предыдущей модели, которую я переоцениваю: < /p>
public function getPartnerProfileById($partnerId) {
$data = array();
if ($partnerId != '') {
$collection = Mage::getModel('marketplace/userprofile')->getCollection();
$collection->addFieldToFilter('mageuserid',array('eq'=>$partnerId));
...
Подробнее здесь: https://stackoverflow.com/questions/242 ... -non-objec