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/stock')), 00041 'alert.customer_id=e.entity_id', 00042 array('alert_stock_id','website_id', 'add_date', '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_stock_id'); 00050 $this->addAttributeToSelect('*'); 00051 00052 return $this; 00053 }