mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding fix for scaffold when using an alias association, mostly found on self joined models, or models that have multiple associations to the same model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3820 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
8fef7cf4ba
commit
b42373467f
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ class Model extends Overloadable {
|
|||
}
|
||||
|
||||
$this->alias[$assoc] = $this->{$assoc}->table;
|
||||
$this->tableToModel[$this->{$assoc}->table] = $assoc;
|
||||
$this->tableToModel[$this->{$assoc}->table] = $className;
|
||||
$this->modelToTable[$assoc] = $this->{$assoc}->table;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue