public function setRelatedId( $id )
	{
		if ( $id === $this->getRelatedId() ) { return; }
		$id = (int) $id;
		$this->_values['relatedid'] = $id;
		$this->setModified();
	}
public function setRelatedId( $id )
	{
		if ( $id === $this->getRelatedId() ) { return; }
		$id = (int) $id;
		$this->_values['relatedid'] = $id;
		$this->setModified();
	}
public function setRelatedId ( $ id ) { if ( $ id === $ this -> getRelatedId ( ) ) { return ; } $ id = ( int ) $ id ; $ this -> _values [ 'relatedid' ] = $ id ; $ this -> setModified ( ) ; }
Sets the related invoice ID.

@param integer|null $id Related invoice ID
@throws MShop_Order_Exception If ID is invalid
Sets the related invoice ID .