_reviewerId = $id; return $this; } public function getReviewerId() { if ( ! $this->_reviewerId ) { throw new Exception( 'Reviewer ID is no set' ); } return $this->_reviewerId; } protected function _join( Zend_Db_Select $select = null ) { $select = parent::_join( $select ); $conds = array(); $conds[] = '`ApplicationReviewer2User`.`userId` = `' . $this->_tableAlias . '`.`id`'; $conds[] = $this->_db->quoteInto( '`ApplicationReviewer2User`.`reviewerId` = ?', $this->getReviewerId(), Qs_Db::INT_TYPE ); $select->join( $this->_getPair( 'ApplicationReviewer2User' ), implode( ' AND ', $conds ), array() ); return $select; } }