Hello,
I’m getting an object with
$object = $modx->getObject($classname, $myid]);
Now I want to save/insert it into another table (with the same structure of course). How can I do this?
Is there a way to change the classname or simply create a new object like
$newobject = $modx->newObject($newclassname, $object);
without copying every field?
Sorry for the stupid question, but I really couldn’t find a way.