If a published object is edited in the code, is there a possibility to save this as a new version of this object but leave the initially version as the published one?
So that a editor could check the new version first and if everything's ok he could publish it by hand.
The "Versioning" chapter in the documentation isn't very helpful.
try this snippet for $object you want to save: