source/Core/Model/BaseModel.php
public function oxClone($object)
    {
        $classVariables = get_object_vars($object);
        foreach ($classVariables as $name => $value) {
            if (is_object($object->$name)) {
                $this->$name = clone $object->$name;
            } else {
                $this->$name = $object->$name;
            }
        }
    }
public function oxClone($object)
    {
        $classVariables = get_object_vars($object);
        foreach ($classVariables as $name => $value) {
            if (is_object($object->$name)) {
                $this->$name = clone $object->$name;
            } else {
                $this->$name = $object->$name;
            }
        }
    }
public function oxClone ( $ object ) { $ classVariables = get_object_vars ( $ object ) ; foreach ( $ classVariables as $ name => $ value ) { if ( is_object ( $ object -> $ name ) ) { $ this -> $ name = clone $ object -> $ name ; } else { $ this -> $ name = $ object -> $ name ; } } }
Clone this object - similar to Copy Constructor.

@param object $object Object to copy
Clone this object - similar to Copy Constructor .