rudiedirkx/Rudie-on-wheels — Issue #24: Smarter Model conditions (with less dirty params)
Author: rudiedirkx
Created: 2011-10-20 19:28:20+00:00
State: open

Must allow:

$conditions = array(
'a' => $a,
'b > 1', // numeric => string
'0 = (SELECT COUNT(1) FROM oele WHERE foo = tbl.bar)', // numeric => string
array('name <> ', $name), // numeric => array
);

What's new? The last line: a numeric array as single condition: two elements: `don't escape`, `do escape`.

Let's not make it any harder than that...