Welcome Guest, Not a member yet? Register   Sign In
Active Record - Where filter with same keys
#1

Hi team, I'm having an issue when trying to build a where filter with same keys. Example
PHP Code:
$where = array(
     
"state <>" => "foo"
     
"state <>" => "bar",
); 
In the example the query build like "WHERE state <> 'bar'" because of the first element of the array is overridden by the sencond one.

Any solution?

Thanks in advance!
Reply


Messages In This Thread
Active Record - Where filter with same keys - by CiUser - 12-26-2014, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB