Skip to content
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

Add enough parity for CASE statements in ORDERs so that raw SQL is no longer needed #25

Open
wbond opened this issue Apr 27, 2012 · 0 comments

Comments

@wbond
Copy link
Member

wbond commented Apr 27, 2012

Ticket #603 by @khamer:

Perhaps an ordered array of conditions?

This allows for order statements to no longer depend no the database for execution, which means build related methods could have a method signature that allows for conditions, orders, and limits. While there's some risk of these build methods leaking more schema into views/controllers, it'll hopefully mostly replace the more common and worse $record->buildRelatedRecords()->filter($conditions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant