merged 3708 (Fixed #776) from 0.10 branch to trunk.
This commit is contained in:
parent
dad3137528
commit
ec404b46c7
1 changed files with 2 additions and 2 deletions
|
@ -1459,10 +1459,10 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
|
|||
foreach ($this->_references as $key => $value) {
|
||||
if ($value instanceof Doctrine_Collection) {
|
||||
foreach ($value as $record) {
|
||||
$rt->{$key}[] = $record->copy($deep);
|
||||
$ret->{$key}[] = $record->copy($deep);
|
||||
}
|
||||
} else {
|
||||
$rt->set($key, $value->copy($deep));
|
||||
$ret->set($key, $value->copy($deep));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue