src/model/Base/StructureNode.php
public function removeStructureNodeRelatedByStructureNodeId(ChildStructureNode $structureNodeRelatedByStructureNodeId)
    {
        if ($this->getStructureNodesRelatedByStructureNodeId()->contains($structureNodeRelatedByStructureNodeId)) { $structureNodeParent = new ChildStructureNodeParent();

            $structureNodeParent->setStructureNodeRelatedByStructureNodeId($structureNodeRelatedByStructureNodeId);
            if ($structureNodeRelatedByStructureNodeId->isStructureNodeRelatedByParentIdsLoaded()) {
                //remove the back reference if available
                $structureNodeRelatedByStructureNodeId->getStructureNodeRelatedByParentIds()->removeObject($this);
            }

            $structureNodeParent->setStructureNodeRelatedByParentId($this);
            $this->removeStructureNodeParentRelatedByParentId(clone $structureNodeParent);
            $structureNodeParent->clear();

            $this->collStructureNodesRelatedByStructureNodeId->remove($this->collStructureNodesRelatedByStructureNodeId->search($structureNodeRelatedByStructureNodeId));

            if (null === $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion) {
                $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion = clone $this->collStructureNodesRelatedByStructureNodeId;
                $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion->clear();
            }

            $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion->push($structureNodeRelatedByStructureNodeId);
        }


        return $this;
    }
public function removeStructureNodeRelatedByStructureNodeId(ChildStructureNode $structureNodeRelatedByStructureNodeId)
    {
        if ($this->getStructureNodesRelatedByStructureNodeId()->contains($structureNodeRelatedByStructureNodeId)) { $structureNodeParent = new ChildStructureNodeParent();

            $structureNodeParent->setStructureNodeRelatedByStructureNodeId($structureNodeRelatedByStructureNodeId);
            if ($structureNodeRelatedByStructureNodeId->isStructureNodeRelatedByParentIdsLoaded()) {
                //remove the back reference if available
                $structureNodeRelatedByStructureNodeId->getStructureNodeRelatedByParentIds()->removeObject($this);
            }

            $structureNodeParent->setStructureNodeRelatedByParentId($this);
            $this->removeStructureNodeParentRelatedByParentId(clone $structureNodeParent);
            $structureNodeParent->clear();

            $this->collStructureNodesRelatedByStructureNodeId->remove($this->collStructureNodesRelatedByStructureNodeId->search($structureNodeRelatedByStructureNodeId));

            if (null === $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion) {
                $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion = clone $this->collStructureNodesRelatedByStructureNodeId;
                $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion->clear();
            }

            $this->structureNodesRelatedByStructureNodeIdScheduledForDeletion->push($structureNodeRelatedByStructureNodeId);
        }


        return $this;
    }
public function removeStructureNodeRelatedByStructureNodeId ( ChildStructureNode $ structureNodeRelatedByStructureNodeId ) { if ( $ this -> getStructureNodesRelatedByStructureNodeId ( ) -> contains ( $ structureNodeRelatedByStructureNodeId ) ) { $ structureNodeParent = new ChildStructureNodeParent ( ) ; $ structureNodeParent -> setStructureNodeRelatedByStructureNodeId ( $ structureNodeRelatedByStructureNodeId ) ; if ( $ structureNodeRelatedByStructureNodeId -> isStructureNodeRelatedByParentIdsLoaded ( ) ) { //remove the back reference if available $ structureNodeRelatedByStructureNodeId -> getStructureNodeRelatedByParentIds ( ) -> removeObject ( $ this ) ; } $ structureNodeParent -> setStructureNodeRelatedByParentId ( $ this ) ; $ this -> removeStructureNodeParentRelatedByParentId ( clone $ structureNodeParent ) ; $ structureNodeParent -> clear ( ) ; $ this -> collStructureNodesRelatedByStructureNodeId -> remove ( $ this -> collStructureNodesRelatedByStructureNodeId -> search ( $ structureNodeRelatedByStructureNodeId ) ) ; if ( null === $ this -> structureNodesRelatedByStructureNodeIdScheduledForDeletion ) { $ this -> structureNodesRelatedByStructureNodeIdScheduledForDeletion = clone $ this -> collStructureNodesRelatedByStructureNodeId ; $ this -> structureNodesRelatedByStructureNodeIdScheduledForDeletion -> clear ( ) ; } $ this -> structureNodesRelatedByStructureNodeIdScheduledForDeletion -> push ( $ structureNodeRelatedByStructureNodeId ) ; } return $ this ; }
Remove structureNodeRelatedByStructureNodeId of this object
through the kk_trixionary_structure_node_parent cross reference table.

@param ChildStructureNode $structureNodeRelatedByStructureNodeId
@return ChildStructureNode The current object (for fluent API support)
Remove structureNodeRelatedByStructureNodeId of this object through the kk_trixionary_structure_node_parent cross reference table .