Skip to content

fix: distinct() uses buildWhereClause() instead of legacy condition loop#215

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Mar 11, 2026
Merged

fix: distinct() uses buildWhereClause() instead of legacy condition loop#215
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Member

distinct() was manually iterating conditions with a hardcoded $condition[1] $condition[2] ? pattern, breaking for any non-simple condition like whereIn, whereNull, whereBetween, nested wheres, and EXISTS subqueries.

Replaced with buildWhereClause() and bindAllValues() — the same path all other builder methods use. Also added get() to Collection as an alias for all() returning array.

@techmahedy techmahedy merged commit 962be4d into doppar:3.x Mar 11, 2026
15 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant