Rotate transform without rotation the children

I need a function, that just rotates the parent of a hierarchy and not its children. Is there a function that could do that?
Else, would it be a good idea, to put all childs into an array, then detach the children, rotate the parent and then put them back into it?

I am questioning if you really want the children on the parent if you need to rotate the parent independently.

Maybe attach the children to another object instead, and have that object update its position to be the same as the parent. That way the children update to the new object’s position, which updates to the “parent”'s position. But when the “parent” rotates, the others don’t.