Welcome Guest, Not a member yet? Register   Sign In
active record // where() or_where_in() question
#4

[eluser]Aken[/eluser]
There's no way to create that with active record right now. If you want to group WHERE conditions, you need to just use one WHERE statement for the entire group, meaning you'll still be writing some of it by hand.

There is some suggested code (a pull request) to the Github repository for providing group support in the query builder for WHERE statements. Hard to say if it'll be included soon, since it would need to be accepted for every type of database driver. But it might be something you can incorporate into your application somehow.


Messages In This Thread
active record // where() or_where_in() question - by El Forum - 10-25-2012, 05:03 AM
active record // where() or_where_in() question - by El Forum - 10-25-2012, 05:08 AM
active record // where() or_where_in() question - by El Forum - 10-25-2012, 05:35 AM
active record // where() or_where_in() question - by El Forum - 10-25-2012, 08:48 PM
active record // where() or_where_in() question - by El Forum - 10-26-2012, 08:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB