function copyto($key) { $var =& \Base::instance()->ref($key); foreach ($this->document as $key => $field) { $var[$key] = $field; } }