improve Query Builder to make more complex queries |
(10-16-2016, 08:20 PM)kilishan Wrote: For sub-queries, I believe Query Grouping already handles that, even in CI. That aside, I don't understand how this example would work. You're comparing a field with a partially generated query. How would it know what you're expecting to compare it to? Grouping queries looks ugly. I want to suggest using an anonymous function. PHP Code: $builder->where(function(BaseBuilder $builder) { Subqueries? PHP Code: $builder->where('key', function(BaseBuilder $builder) { it's easy |
Welcome Guest, Not a member yet? Register Sign In |