UnionOfRAD/lithium — Issue #169: lithium\data\source\Database::constraint() only supports strings
Author: rspenc29
Created: 2011-10-23 04:46:29+00:00
State: open

It's very common for me to use multiple conditions in a join such as ON(table1.ID = table2.table1_ID AND table2.otherfield = 10) however this method will put the constant in backticks by passing it to $this->name() causing a mysql error. Moving the second condition to the 'conditions' array isn't really feasible since adding different conditions from a query in another part of the application will overwrite it breaking the join.