public function registerChildExecution(Execution $execution)
    {
        $execution->parentExecution = $this;
        
        if (!in_array($execution, $this->childExecutions, true)) {
            $this->childExecutions[] = $execution;
        }
        
        $this->markModified();
        
        return $execution;
    }
public function registerChildExecution(Execution $execution)
    {
        $execution->parentExecution = $this;
        
        if (!in_array($execution, $this->childExecutions, true)) {
            $this->childExecutions[] = $execution;
        }
        
        $this->markModified();
        
        return $execution;
    }
public function registerChildExecution ( Execution $ execution ) { $ execution -> parentExecution = $ this ; if ( ! in_array ( $ execution , $ this -> childExecutions , true ) ) { $ this -> childExecutions [ ] = $ execution ; } $ this -> markModified ( ) ; return $ execution ; }
Register the given child execution with the parent execution.

@param Execution $execution
@return Execution
Register the given child execution with the parent execution .