mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
Merge remote branch 'origin/1.2' into 1.3
Conflicts: cake/libs/cake_session.php cake/libs/controller/components/session.php cake/libs/model/model.php cake/libs/router.php
This commit is contained in:
commit
0c29fd0094
4 changed files with 130 additions and 54 deletions
|
@ -2688,7 +2688,7 @@ class Model extends Overloadable {
|
|||
$field = $this->primaryKey;
|
||||
}
|
||||
$db =& ConnectionManager::getDataSource($this->useDbConfig);
|
||||
if (strpos($field, $db->name($alias)) === 0) {
|
||||
if (strpos($field, $db->name($alias) . '.') === 0) {
|
||||
return $field;
|
||||
}
|
||||
return $db->name($alias . '.' . $field);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue