plugin/path/Entity/Step.php
public function removeChild(Step $step)
    {
        if ($this->children->contains($step)) {
            $this->children->removeElement($step);
            $step->setParent(null);
        }

        return $this;
    }
public function removeChild(Step $step)
    {
        if ($this->children->contains($step)) {
            $this->children->removeElement($step);
            $step->setParent(null);
        }

        return $this;
    }
public function removeChild ( Step $ step ) { if ( $ this -> children -> contains ( $ step ) ) { $ this -> children -> removeElement ( $ step ) ; $ step -> setParent ( null ) ; } return $ this ; }
Remove a step from children.

@param Step $step

@return Step
Remove a step from children .