code: public function getRelatedRecords()
  	{
  		$arrRelated = array();
  		$objDatabase = Database::getInstance();
  
  		$objRelated = $objDatabase->prepare("SELECT * FROM tl_opt_in_related WHERE pid=?")
  								  ->execute($this->id);
  
  		while ($objRelated->next())
  		{
  			$arrRelated[$objRelated->relTable][] = $objRelated->relId;
  		}
  
  		return $arrRelated;
  	}
docs: Returns the related records
  
  @return array