Commit ec404b46 authored by romanb's avatar romanb

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

parent dad31375
......@@ -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));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment