mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
95cafaec3b
commit
e01f5989af
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue