Welcome Guest, Not a member yet? Register   Sign In
Undefined property: CI_DB_mysqli_driver::$ar_orderby?
#6

More than likely, you'll have to rewrite your code to handle this on its own. The ar_orderby property was undocumented, and not meant to be used in your application code. You usually have three options for something like this:
1. Set a property within your model when you add an order by clause (and reset that property when you execute a get/insert/update request).
2. Use the get_compiled_select() method to get the generated SQL and check for the order by clause there.
3. Write your code in a way that makes tracking the addition of an order by clause unnecessary.
Reply


Messages In This Thread
RE: Undefined property: CI_DB_mysqli_driver::$ar_orderby? - by mwhitney - 06-01-2015, 08:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB