Lazer\Classes\Core_Relation::getJunction PHP Method

getJunction() public method

Getter of junction table name in many2many relation
public getJunction ( ) : boolean | string
return boolean | string Name of junction table or false
    public function getJunction()
    {
        if ($this->relationType == 'hasAndBelongsToMany') {
            $tables = $this->tables;
            sort($tables);
            return implode('_', $tables);
        }
        return false;
    }