src/mako/database/midgard/ORM.php
public function getForeignKey(): string
	{
		if(empty($this->foreignKeyName))
		{
			$this->foreignKeyName = Str::camel2underscored($this->getClassShortName()) . '_id';
		}

		return $this->foreignKeyName;
	}
public function getForeignKey(): string
	{
		if(empty($this->foreignKeyName))
		{
			$this->foreignKeyName = Str::camel2underscored($this->getClassShortName()) . '_id';
		}

		return $this->foreignKeyName;
	}
public function getForeignKey ( ) : string { if ( empty ( $ this -> foreignKeyName ) ) { $ this -> foreignKeyName = Str :: camel2underscored ( $ this -> getClassShortName ( ) ) . '_id' ; } return $ this -> foreignKeyName ; }
Returns the foreign key of the table.

@return string
Returns the foreign key of the table .