src/mako/database/midgard/relations/BelongsTo.php
public function getRelated()
	{
		if($this->parent->getRawColumnValue($this->getForeignKey()) === null)
		{
			return false;
		}

		return $this->first();
	}
public function getRelated()
	{
		if($this->parent->getRawColumnValue($this->getForeignKey()) === null)
		{
			return false;
		}

		return $this->first();
	}
public function getRelated ( ) { if ( $ this -> parent -> getRawColumnValue ( $ this -> getForeignKey ( ) ) === null ) { return false ; } return $ this -> first ( ) ; }
Returns related a record from the database.

@return \mako\database\midgard\ORM|false
Returns related a record from the database .