source/Spiral/ORM/Schemas/Relations/ManyToManySchema.php
protected function pivotTable(): string
    {
        if (!empty($this->option(Record::PIVOT_TABLE))) {
            return $this->option(Record::PIVOT_TABLE);
        }

        $source = $this->definition->sourceContext();
        $target = $this->definition->targetContext();

        //Generating pivot table name
        $names = [$source->getRole(), $target->getRole()];
        asort($names);

        return implode('_', $names) . static::PIVOT_POSTFIX;
    }
protected function pivotTable(): string
    {
        if (!empty($this->option(Record::PIVOT_TABLE))) {
            return $this->option(Record::PIVOT_TABLE);
        }

        $source = $this->definition->sourceContext();
        $target = $this->definition->targetContext();

        //Generating pivot table name
        $names = [$source->getRole(), $target->getRole()];
        asort($names);

        return implode('_', $names) . static::PIVOT_POSTFIX;
    }
protected function pivotTable ( ) : string { if ( ! empty ( $ this -> option ( Record :: PIVOT_TABLE ) ) ) { return $ this -> option ( Record :: PIVOT_TABLE ) ; } $ source = $ this -> definition -> sourceContext ( ) ; $ target = $ this -> definition -> targetContext ( ) ; //Generating pivot table name $ names = [ $ source -> getRole ( ) , $ target -> getRole ( ) ] ; asort ( $ names ) ; return implode ( '_' , $ names ) . static :: PIVOT_POSTFIX ; }
Generate name of pivot table or fetch if from schema.

@return string
Generate name of pivot table or fetch if from schema .