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:
phpnut 2008-10-12 22:21:55 +00:00
parent a170464d3c
commit f139b0312f

View file

@ -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':