-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving a model with non-default connection #19030
Comments
Unable to replicate your issue, the model saves with respect to the specified non-default connection successfully, please check your code for further details about the failure. |
+1 here. I'm using yajra/laravel-oci8 and I have models with connection = 'oracle'; and I have error on saving. Select works. I rolled back to 5.4.16 and it works. |
I'm still unable to replicate, please share some steps to reproduce that I can use on a fresh laravel instance. |
yajra/laravel-oci8#279 have a look here. |
Closing since we are unable to replicate, please report to the package maintainers. |
Related Issues: - Fix #279 - laravel/framework#19049 - laravel/framework#19030
Description:
Eloquent model with property $connection set to non-default fails on saving
Steps To Reproduce:
class Test extends \Eloquent {
protected $connection = 'non-default';
}
$test = Test::find($testID);
$test->prop = '123';
$test->save();
SQL error stating that table does not exist. (because it tries to save on a default connection)
The text was updated successfully, but these errors were encountered: