sdispater / orator

The Orator ORM provides a simple yet beautiful ActiveRecord implementation.

Home Page:https://orator-orm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

orm relation database connection support

zacksleo opened this issue · comments

commented

It's seems that relation does not support cross database connection.

when I use @belongs_to which model usded another database connection, I got exception like ""Table 'member' doesn't exist""

    @belongs_to
    def member(self):
        return Member


class Member(Model):

    __connection__ = 'another_database'