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

Creating methods are missing when using multiple databases

nanernunes opened this issue · comments

With multiple databases, when you define a connection name through MyModel.on('connection_name') the method returns a QueryBuilder where I can't find creating methods like create, first_or_create.

The methods to fetch data still work as well - (get, first).

Is there a way to access those methods using custom connections with .on()?