mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 12:32:42 +00:00
Merge branch 'master' into 2.3
Conflicts: lib/Cake/Test/Case/View/MediaViewTest.php
This commit is contained in:
commit
60f9626838
20 changed files with 289 additions and 64 deletions
|
@ -2489,16 +2489,16 @@ class DboSource extends DataSource {
|
|||
$count = count($value);
|
||||
if ($count === 1 && !preg_match("/\s+NOT$/", $key)) {
|
||||
$data = $this->_quoteFields($key) . ' = (';
|
||||
} else {
|
||||
$data = $this->_quoteFields($key) . ' IN (';
|
||||
}
|
||||
if ($quoteValues) {
|
||||
if (is_object($model)) {
|
||||
$columnType = $model->getColumnType($key);
|
||||
if ($quoteValues) {
|
||||
if (is_object($model)) {
|
||||
$columnType = $model->getColumnType($key);
|
||||
}
|
||||
$data .= implode(', ', $this->value($value, $columnType));
|
||||
}
|
||||
$data .= implode(', ', $this->value($value, $columnType));
|
||||
$data .= ')';
|
||||
} else {
|
||||
$data = $this->_parseKey($model, $key, $value);
|
||||
}
|
||||
$data .= ')';
|
||||
} else {
|
||||
$ret = $this->conditionKeysToString($value, $quoteValues, $model);
|
||||
if (count($ret) > 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue