1
0
mirror of synced 2025-02-01 13:01:45 +03:00

merged 3708 (Fixed #776) from 0.10 branch to trunk.

This commit is contained in:
romanb 2008-02-07 22:27:29 +00:00
parent dad3137528
commit ec404b46c7

View File

@ -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));
}
}
}