Example #1
0
 /**
  * Get the record that is referenced by this one from the column given.
  *
  * @param string $columnName
  * @return boolean|\Tabulate\DB\Record
  */
 public function getReferencedRecord($columnName)
 {
     if (!isset($this->data->{$columnName})) {
         return false;
     }
     return $this->table->getColumn($columnName)->getReferencedTable()->getRecord($this->data->{$columnName});
 }