Adding fix for loading join models classes from plugins, fixes #4014

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6493 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-03-01 03:25:46 +00:00
parent 195ad336a5
commit e58c397bc9

View file

@ -676,7 +676,7 @@ class Model extends Overloadable {
$this->{$joinClass}->primaryKey = $this->{$type}[$assocKey]['foreignKey'];
} else {
$this->__constructLinkedModel($plugin . $joinClass);
$this->__constructLinkedModel($joinClass, $plugin . $joinClass);
$this->{$joinClass}->primaryKey = $this->{$type}[$assocKey]['foreignKey'];
$this->{$type}[$assocKey]['joinTable'] = $this->{$joinClass}->table;
}