-
Notifications
You must be signed in to change notification settings - Fork 358
Full-text improvements #947
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
Conversation
src/Engines/DatabaseEngine.php
Outdated
| return $query->where(function ($query) use ($builder, $columns, $prefixColumns, $fullTextColumns) { | ||
| $connectionType = $builder->model->getConnection()->getDriverName(); | ||
| [$connectionType] = [ | ||
| $builder->model->getConnection()->getDriverName(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be $builder->modelConnectionType() ?
| $connectionType = $builder->model->getConnection()->getDriverName(); | ||
| [$connectionType] = [ | ||
| $builder->modelConnectionType(), | ||
| ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to bother you again but why are you converting the model connection type to an array with one element just to retrieve the first and only element right after? Wouldn't it be easier to assign the connection type directly?
$connectionType = $builder->modelConnectionType();There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was assigning multiple variables here in an earlier version.
This makes a couple of improvements to full-text support when using the
databaseengine.orWhereFullTextin a single call.