Why aren't three part references supported? #57677
Unanswered
MartinHughes-BPC
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a fairly complicated multi-database setup. As a matter of course I always set a model's
protected $tableto the three part table identifier, eg sales.dbo.orders as this allows for cross-database relationship querying, amongst some other benefits in SQL Server such as cross-database transactions with the same connection. This has worked flawlessly since Laravel 5.8.However, if I try to run some newer commands, such as:
php artisan model:show UserI get an error:
"Using three-part references is not supported, you may use
Schema::connection('{$segments[0]}')instead."Thrown in Illuminate\Database\Schema\Builder parseSchemaAndTable method.
My question is why aren't three part references supported?
Cheers,
Martin.
Beta Was this translation helpful? Give feedback.
All reactions