RedBeanPHP\QueryWriter\AQueryWriter::makeFKLabel PHP Method

makeFKLabel() protected method

This key is a readable string unique for every source table. This uniform key is called the FKDL Foreign Key Description Label. Note that the source table is not part of the FKDL because this key is supposed to be 'per source table'. If you wish to include a source table, prefix the key with 'on_table__'.
protected makeFKLabel ( string $from, string $type, string $to ) : string
$from string the column of the key in the source table
$type string the type (table) where the key points to
$to string the target column of the foreign key (mostly just 'id')
return string
    protected function makeFKLabel($from, $type, $to)
    {
        return "from_{$from}_to_table_{$type}_col_{$to}";
    }