SilverStripe\Versioned\RecursivePublishable::unlinkDisownedObjects
Set foreign keys of has_many objects to 0 where those objects were disowned as a result of a partial publish / unpublish.
I.e. this object and its owned objects were recently written to $targetStage, but deleted objects were not. Note that this operation does not create any new Versions
Signature
public function unlinkDisownedObjects(string|int|DataObject
$source,
string
$targetStage )
Parameters
$source
— object- Objects in this stage / version / record will not be unlinked.
Provide number if saving records from a version, or string if saving records from a stage $targetStage
— string- Objects which exist in this stage but not $sourceVersion
will be unlinked. This parameter only supports stage name, as you cannot modify specific versions