mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
195ad336a5
commit
e58c397bc9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue