/** * Join customer attribute * * @param Mage_Eav_Model_Entity_Attribute_Abstract $attribute */ protected function _joinCustomerAttibute(Mage_Eav_Model_Entity_Attribute_Abstract $attribute) { $tableName = 'at_' . $attribute->getName(); $joinExpr = array($tableName . '.entity_id = wishlist_table.customer_id', $this->getSelect()->getAdapter()->quoteInto($tableName . '.attribute_id = ?', $attribute->getAttributeId())); $this->getSelect()->joinLeft(array($tableName => $attribute->getBackend()->getTable()), implode(' AND ', $joinExpr), array()); }