Public Member Functions | |
join ($productId, $websiteId) |
Definition at line 35 of file Collection.php.
join | ( | $ | productId, | |
$ | websiteId | |||
) |
Definition at line 37 of file Collection.php.
00038 { 00039 $this->getSelect()->join( 00040 array('alert' => $this->getTable('productalert/price')), 00041 'e.entity_id=alert.customer_id', 00042 array('alert_price_id', 'website_id', 'price', 'add_date', 'last_send_date', 'send_count', 'status') 00043 ); 00044 00045 $this->getSelect()->where('alert.product_id=?', $productId); 00046 if ($websiteId) { 00047 $this->getSelect()->where('alert.website_id=?', $websiteId); 00048 } 00049 $this->_setIdFieldName('alert_price_id'); 00050 $this->addAttributeToSelect('*'); 00051 00052 return $this; 00053 }