src/ORM/Hierarchy/Hierarchy.php
public function AllChildrenIncludingDeleted()
    {
        /** @var DataObject|Hierarchy|Versioned $owner */
        $owner = $this->owner;
        $stageChildren = $owner->stageChildren(true);

        // Add live site content that doesn't exist on the stage site, if required.
        if ($owner->hasExtension(Versioned::class) && $owner->hasStages()) {
            // Next, go through the live children.  Only some of these will be listed
            $liveChildren = $owner->liveChildren(true, true);
            if ($liveChildren) {
                $merged = new ArrayList();
                $merged->merge($stageChildren);
                $merged->merge($liveChildren);
                $stageChildren = $merged;
            }
        }
        $owner->extend("augmentAllChildrenIncludingDeleted", $stageChildren);
        return $stageChildren;
    }
public function AllChildrenIncludingDeleted()
    {
        /** @var DataObject|Hierarchy|Versioned $owner */
        $owner = $this->owner;
        $stageChildren = $owner->stageChildren(true);

        // Add live site content that doesn't exist on the stage site, if required.
        if ($owner->hasExtension(Versioned::class) && $owner->hasStages()) {
            // Next, go through the live children.  Only some of these will be listed
            $liveChildren = $owner->liveChildren(true, true);
            if ($liveChildren) {
                $merged = new ArrayList();
                $merged->merge($stageChildren);
                $merged->merge($liveChildren);
                $stageChildren = $merged;
            }
        }
        $owner->extend("augmentAllChildrenIncludingDeleted", $stageChildren);
        return $stageChildren;
    }
public function AllChildrenIncludingDeleted ( ) { /** @var DataObject|Hierarchy|Versioned $owner */ $ owner = $ this -> owner ; $ stageChildren = $ owner -> stageChildren ( true ) ; // Add live site content that doesn't exist on the stage site, if required. if ( $ owner -> hasExtension ( Versioned :: class ) && $ owner -> hasStages ( ) ) { // Next, go through the live children.  Only some of these will be listed $ liveChildren = $ owner -> liveChildren ( true , true ) ; if ( $ liveChildren ) { $ merged = new ArrayList ( ) ; $ merged -> merge ( $ stageChildren ) ; $ merged -> merge ( $ liveChildren ) ; $ stageChildren = $ merged ; } } $ owner -> extend ( "augmentAllChildrenIncludingDeleted" , $ stageChildren ) ; return $ stageChildren ; }
Return all children, including those that have been deleted but are still in live.
- Deleted children will be marked as "DeletedFromStage"
- Added children will be marked as "AddedToStage"
- Modified children will be marked as "ModifiedOnStage"
- Everything else has "SameOnStage" set, as an indicator that this information has been looked up.

@return ArrayList
Return all children including those that have been deleted but are still in live . - Deleted children will be marked as DeletedFromStage - Added children will be marked as AddedToStage - Modified children will be marked as ModifiedOnStage - Everything else has SameOnStage set as an indicator that this information has been looked up .