Closed mr-Sepi0l closed 4 years ago
Alright got the problem:
protected function pinned($value)
{
return $this->builder->where('pinned', (int)$value);
}
I don't really know why i have to cast my $value
into en integer...
I'm stupid, i should have put the $value
instead of generating an array. My bad.
@DavidSprauel Do you still need to cast it to an integer, even if you are not generating an array? Let me know if you do, as I don't believe that is expected.
Describe the bug I got a very weird errors when executing a simple query.
Eloquent Query This is the generated query, causes no problem when executed in sequel pro. I cannot exactly send the eloquent because the query is generated automatically. When I remove the pinned = 1, it works.
SO here is the line that add the pinned param to the query
Stack Trace
Environment