lib/MwbExporter/Model/Table.php
public function getManyToManyRelatedName($tablename, $column, $code = true)
    {
        // foreign tables count
        $count = $this->getColumns()->getManyToManyCount($tablename);
        // m2m foreign tables count
        foreach ($this->getTableM2MRelations() as $relation) {
            if ($relation['refTable']->getRawTableName() === $tablename) {
                $count++;
            }
        }

        return $count > 1 ? $this->formatRelatedName($column, $code) : '';
    }
public function getManyToManyRelatedName($tablename, $column, $code = true)
    {
        // foreign tables count
        $count = $this->getColumns()->getManyToManyCount($tablename);
        // m2m foreign tables count
        foreach ($this->getTableM2MRelations() as $relation) {
            if ($relation['refTable']->getRawTableName() === $tablename) {
                $count++;
            }
        }

        return $count > 1 ? $this->formatRelatedName($column, $code) : '';
    }
public function getManyToManyRelatedName ( $ tablename , $ column , $ code = true ) { // foreign tables count $ count = $ this -> getColumns ( ) -> getManyToManyCount ( $ tablename ) ; // m2m foreign tables count foreach ( $ this -> getTableM2MRelations ( ) as $ relation ) { if ( $ relation [ 'refTable' ] -> getRawTableName ( ) === $ tablename ) { $ count ++ ; } } return $ count > 1 ? $ this -> formatRelatedName ( $ column , $ code ) : '' ; }
Get the related name for many-to-many relation.

@param string $tablename   The foreign tablename
@param string $column      The foreign column name
@param bool   $code        If true, use result as PHP code or false, use as comment
@return string
Get the related name for many - to - many relation .