merged 3708 (Fixed #776) from 0.10 branch to trunk.
This commit is contained in:
parent
dad3137528
commit
ec404b46c7
@ -1459,10 +1459,10 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
|
|||||||
foreach ($this->_references as $key => $value) {
|
foreach ($this->_references as $key => $value) {
|
||||||
if ($value instanceof Doctrine_Collection) {
|
if ($value instanceof Doctrine_Collection) {
|
||||||
foreach ($value as $record) {
|
foreach ($value as $record) {
|
||||||
$rt->{$key}[] = $record->copy($deep);
|
$ret->{$key}[] = $record->copy($deep);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$rt->set($key, $value->copy($deep));
|
$ret->set($key, $value->copy($deep));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user