mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 19:42:41 +00:00
Fixing postgres self join error
This commit is contained in:
parent
201a952218
commit
c1f74c28ae
1 changed files with 2 additions and 0 deletions
|
@ -1663,6 +1663,8 @@ class DboSource extends DataSource {
|
|||
$originalField = $field;
|
||||
if (strpos($field, '.') !== false) {
|
||||
list($alias, $field) = explode('.', $field);
|
||||
$field = ltrim($field, $this->startQuote);
|
||||
$field = rtrim($field, $this->endQuote);
|
||||
}
|
||||
if (!$model->hasField($field)) {
|
||||
$noJoin = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue