protected function isBelongsToMany($foreignKey)
    {
        $remote = $this->describes[$foreignKey->TABLE_NAME];
        $count = 0;
        foreach ($remote as $field) {
            if ($field->Key == 'PRI') {
                $count++;
            }
        }
        if ($count == 2) {
            return true;
        }

        return false;
    }
protected function isBelongsToMany($foreignKey)
    {
        $remote = $this->describes[$foreignKey->TABLE_NAME];
        $count = 0;
        foreach ($remote as $field) {
            if ($field->Key == 'PRI') {
                $count++;
            }
        }
        if ($count == 2) {
            return true;
        }

        return false;
    }
protected function isBelongsToMany ( $ foreignKey ) { $ remote = $ this -> describes [ $ foreignKey -> TABLE_NAME ] ; $ count = 0 ; foreach ( $ remote as $ field ) { if ( $ field -> Key == 'PRI' ) { $ count ++ ; } } if ( $ count == 2 ) { return true ; } return false ; }
Many to many.

@param $foreignKey

@return bool
Many to many .