Use array conditions for joins.

Use array style conditions instead of using lower-level DboSource API
methods to create safe SQL.

Refs #9927
This commit is contained in:
mark_story 2016-12-28 23:18:30 -05:00
parent 95cafaec3b
commit e01f5989af

View file

@ -102,7 +102,7 @@ class AclNode extends Model {
'alias' => "{$type}{$i}", 'alias' => "{$type}{$i}",
'type' => 'INNER', 'type' => 'INNER',
'conditions' => array( 'conditions' => array(
$db->name("{$type}{$i}.alias") . ' = ' . $db->value($alias, 'string') "{$type}{$i}.alias" => $alias
) )
); );