Skip to content

think I found a bug with where("something", "somevalue") and where("something", "<>", "somevalue") #62

Closed
@vesper8

Description

@vesper8

One part of my application seems to be broken since I started using this package. I've isolated the problem now

I have a table with 300 records

$records = Place::where('place_id', $placeId)->get();

$records->count() is = 1 here

then below I run

$records = Place::where('place_id', '!=', $placeId)->get();

I tried with '<>' but that is the same as '!='

$records->count() should be 299 now, but instead it uses the cache from the above query and returns the same as the above query.. so count is 1.. and instead of getting "Every other record" it is just returning the same record

So it looks like it doesn't differentiate between the two

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions