src/RecursivePublishable.php
public function deleteFromChangeSets()
    {
        $changeSetIDs = [];

        // Remove all ChangeSetItems matching this record
        /** @var ChangeSetItem $changeSetItem */
        foreach (ChangeSetItem::get_for_object($this->owner) as $changeSetItem) {
            $changeSetIDs[$changeSetItem->ChangeSetID] = $changeSetItem->ChangeSetID;
            $changeSetItem->delete();
        }

        // Sync all affected changesets
        if ($changeSetIDs) {
            /** @var ChangeSet $changeSet */
            foreach (ChangeSet::get()->byIDs($changeSetIDs) as $changeSet) {
                $changeSet->sync();
            }
        }
        return true;
    }
public function deleteFromChangeSets()
    {
        $changeSetIDs = [];

        // Remove all ChangeSetItems matching this record
        /** @var ChangeSetItem $changeSetItem */
        foreach (ChangeSetItem::get_for_object($this->owner) as $changeSetItem) {
            $changeSetIDs[$changeSetItem->ChangeSetID] = $changeSetItem->ChangeSetID;
            $changeSetItem->delete();
        }

        // Sync all affected changesets
        if ($changeSetIDs) {
            /** @var ChangeSet $changeSet */
            foreach (ChangeSet::get()->byIDs($changeSetIDs) as $changeSet) {
                $changeSet->sync();
            }
        }
        return true;
    }
public function deleteFromChangeSets ( ) { $ changeSetIDs = [ ] ; // Remove all ChangeSetItems matching this record /** @var ChangeSetItem $changeSetItem */ foreach ( ChangeSetItem :: get_for_object ( $ this -> owner ) as $ changeSetItem ) { $ changeSetIDs [ $ changeSetItem -> ChangeSetID ] = $ changeSetItem -> ChangeSetID ; $ changeSetItem -> delete ( ) ; } // Sync all affected changesets if ( $ changeSetIDs ) { /** @var ChangeSet $changeSet */ foreach ( ChangeSet :: get ( ) -> byIDs ( $ changeSetIDs ) as $ changeSet ) { $ changeSet -> sync ( ) ; } } return true ; }
Remove this item from any changesets

@return bool
Remove this item from any changesets