コード例 #1
0
 /**
  * Load customer balance data by specified customer id and website id
  *
  * @param Enterprise_CustomerBalance_Model_Balance $object
  * @param int $customerId
  * @param int $websiteId
  */
 public function loadByCustomerAndWebsiteIds($object, $customerId, $websiteId)
 {
     $read = $this->getReadConnection();
     if ($data = $read->fetchRow($read->select()->from($this->getMainTable())->where('customer_id = ?', $customerId)->where('website_id = ?', $websiteId)->limit(1))) {
         $object->addData($data);
     }
 }