mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixes #5591 Dynamic With Models broken after changeset [7732]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7739 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
a170464d3c
commit
f139b0312f
1 changed files with 2 additions and 1 deletions
|
@ -620,9 +620,10 @@ class Model extends Overloadable {
|
|||
$class = $assocKey;
|
||||
|
||||
foreach ($this->__associationKeys[$type] as $key) {
|
||||
$dynamicWith = false;
|
||||
|
||||
if (!isset($this->{$type}[$assocKey][$key]) || $this->{$type}[$assocKey][$key] === null) {
|
||||
$data = '';
|
||||
$dynamicWith = false;
|
||||
|
||||
switch($key) {
|
||||
case 'fields':
|
||||
|
|
Loading…
Reference in a new issue