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:
phpnut 2006-11-03 21:01:24 +00:00
parent 8fef7cf4ba
commit b42373467f

View file

@ -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;
}
/**