mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge branch '1.3' into 1.3-merger
This commit is contained in:
commit
6fdaa82969
1 changed files with 7 additions and 2 deletions
|
@ -748,8 +748,13 @@ class Model extends Overloadable {
|
|||
if (is_array($joinClass)) {
|
||||
$joinClass = key($joinClass);
|
||||
}
|
||||
list($plugin, $joinClass) = pluginSplit($joinClass, true);
|
||||
$this->{$type}[$assocKey]['with'] = $joinClass;
|
||||
|
||||
$plugin = null;
|
||||
if (strpos($joinClass, '.') !== false) {
|
||||
list($plugin, $joinClass) = explode('.', $joinClass);
|
||||
$plugin .= '.';
|
||||
$this->{$type}[$assocKey]['with'] = $joinClass;
|
||||
}
|
||||
|
||||
if (!ClassRegistry::isKeySet($joinClass) && $dynamicWith === true) {
|
||||
$this->{$joinClass} = new AppModel(array(
|
||||
|
|
Loading…
Reference in a new issue