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

Doc update request in regard to multi connections #47

Closed
wojo1206 opened this issue Feb 27, 2019 · 2 comments
Closed

Doc update request in regard to multi connections #47

wojo1206 opened this issue Feb 27, 2019 · 2 comments

Comments

@wojo1206
Copy link
Contributor

If your models happen to use different connection you must provide protected $connection = 'connection_name' for each model. Otherwise, belongsTo() will call default database which is defined in $this model instead of connection defined in belongsTo() model.

@topclaudy
Copy link
Owner

"Multiple connections" is a feature of Laravel, not Compoships. It's discussed here laravel/framework#18545

@wojo1206
Copy link
Contributor Author

@topclaudy Thanks for the info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants