Skip to content
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

[5.8] Set connection name on cursor() results #28804

Merged
merged 1 commit into from Jun 11, 2019

Conversation

Projects
None yet
2 participants
@staudenmeir
Copy link
Contributor

commented Jun 11, 2019

When a model uses the default connection, cursor() doesn't set the connection name.

User::first()->getConnectionName(); // 'mysql'
User::cursor()->current()->getConnectionName(); // null

Fixes #28794.

@taylorotwell taylorotwell merged commit 1ca32c0 into laravel:5.8 Jun 11, 2019

2 checks passed

continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@staudenmeir staudenmeir deleted the staudenmeir:cursor branch Jun 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.