src/Mapper/Relation/HasAndBelongsToMany.php
public function getRelatedForeignKey()
    {
        if (null == $this->relatedForeignKey) {
            $name = $this->getParentTableName();
            $this->relatedForeignKey = "{$this->normalizeFieldName($name)}_id";
        }
        return $this->relatedForeignKey;
    }
public function getRelatedForeignKey()
    {
        if (null == $this->relatedForeignKey) {
            $name = $this->getParentTableName();
            $this->relatedForeignKey = "{$this->normalizeFieldName($name)}_id";
        }
        return $this->relatedForeignKey;
    }
public function getRelatedForeignKey ( ) { if ( null == $ this -> relatedForeignKey ) { $ name = $ this -> getParentTableName ( ) ; $ this -> relatedForeignKey = "{$this->normalizeFieldName($name)}_id" ; } return $ this -> relatedForeignKey ; }
Gets the related foreign key

@return string
Gets the related foreign key