-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Bug with Laravel Scout v6.1.3 update #215
Comments
Having the same issues. Sometime the
and sometimes
as |
same problem here |
@Dylan-Chapman Can you solve this? |
@renatosistemasvc Nope, I had to revert to Laravel Scout v6.1.1 until this is fixed. |
@Dylan-Chapman I tried to install an earlier version and could not. Is it possible for you to send me the teamtnt folder that is inside the vendor of your project for me to use here in my project? I need to put this to work and if you can help me I'll be very happy. my email: renatosistemas.vc@gmail.com |
It's not this package you need to revert, it's Scout. Sending the teamtnt folder won't help. Just lock Scout in your composer json: |
@Dylan-Chapman your solution worked! Thank you friend! |
I was just about to open a support ticket on this same issue, then found this. I've been looking through code and if I do the following
it works as a temporary fix. Reviewing code for this project I found the following. laravel-scout-tntsearch-driver/src/Engines/TNTSearchEngine.php Lines 201 to 206 in 655d6ea
If I change the linked lines to
It fixes my issue. I get an instance of "Illuminate\Database\Eloquent\Collection" instead of "Illuminate\Support\Collection" which is what is returned by I was about to work on a PR as this looked like a fix but saw the following comment so left it be as there could be other implications of this change I'd not considered.
|
I just tested, and it seems like this actually broke in v6.1.2, which means it's likely caused by this pull request. So, I think as long as you cross-check any changes from that pull request, it will probably be fine. (We already established earlier on it was likely from that pull request, but because the error arose between 6.1.1 and 6.1.2, that's almost definitely the problem. I just don't know enough the libraries' internals to do much about it.) |
This issue still exist in latest version of tntsearch and laravel 6.x. |
Any update regarding this issue? |
(For more details/discussion: laravel/scout#339)
Lazy loading relationships is no longer working with the latest Laravel Scout. They recommended I open a thread in this repo. They thought it may be related to: https://github.com/teamtnt/laravel-scout-tntsearch-driver/blob/master/src/Engines/TNTSearchEngine.php#L197-L206.
The problem is that
returns the error
The text was updated successfully, but these errors were encountered: