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

            $structureNodeParent->setStructureNodeRelatedByParentId($structureNodeRelatedByParentId);
            if ($structureNodeRelatedByParentId->isStructureNodeRelatedByStructureNodeIdsLoaded()) {
                //remove the back reference if available
                $structureNodeRelatedByParentId->getStructureNodeRelatedByStructureNodeIds()->removeObject($this);
            }

            $structureNodeParent->setStructureNodeRelatedByStructureNodeId($this);
            $this->removeStructureNodeParentRelatedByStructureNodeId(clone $structureNodeParent);
            $structureNodeParent->clear();

            $this->collStructureNodesRelatedByParentId->remove($this->collStructureNodesRelatedByParentId->search($structureNodeRelatedByParentId));

            if (null === $this->structureNodesRelatedByParentIdScheduledForDeletion) {
                $this->structureNodesRelatedByParentIdScheduledForDeletion = clone $this->collStructureNodesRelatedByParentId;
                $this->structureNodesRelatedByParentIdScheduledForDeletion->clear();
            }

            $this->structureNodesRelatedByParentIdScheduledForDeletion->push($structureNodeRelatedByParentId);
        }


        return $this;
    }
public function removeStructureNodeRelatedByParentId(ChildStructureNode $structureNodeRelatedByParentId)
    {
        if ($this->getStructureNodesRelatedByParentId()->contains($structureNodeRelatedByParentId)) { $structureNodeParent = new ChildStructureNodeParent();

            $structureNodeParent->setStructureNodeRelatedByParentId($structureNodeRelatedByParentId);
            if ($structureNodeRelatedByParentId->isStructureNodeRelatedByStructureNodeIdsLoaded()) {
                //remove the back reference if available
                $structureNodeRelatedByParentId->getStructureNodeRelatedByStructureNodeIds()->removeObject($this);
            }

            $structureNodeParent->setStructureNodeRelatedByStructureNodeId($this);
            $this->removeStructureNodeParentRelatedByStructureNodeId(clone $structureNodeParent);
            $structureNodeParent->clear();

            $this->collStructureNodesRelatedByParentId->remove($this->collStructureNodesRelatedByParentId->search($structureNodeRelatedByParentId));

            if (null === $this->structureNodesRelatedByParentIdScheduledForDeletion) {
                $this->structureNodesRelatedByParentIdScheduledForDeletion = clone $this->collStructureNodesRelatedByParentId;
                $this->structureNodesRelatedByParentIdScheduledForDeletion->clear();
            }

            $this->structureNodesRelatedByParentIdScheduledForDeletion->push($structureNodeRelatedByParentId);
        }


        return $this;
    }
public function removeStructureNodeRelatedByParentId ( ChildStructureNode $ structureNodeRelatedByParentId ) { if ( $ this -> getStructureNodesRelatedByParentId ( ) -> contains ( $ structureNodeRelatedByParentId ) ) { $ structureNodeParent = new ChildStructureNodeParent ( ) ; $ structureNodeParent -> setStructureNodeRelatedByParentId ( $ structureNodeRelatedByParentId ) ; if ( $ structureNodeRelatedByParentId -> isStructureNodeRelatedByStructureNodeIdsLoaded ( ) ) { //remove the back reference if available $ structureNodeRelatedByParentId -> getStructureNodeRelatedByStructureNodeIds ( ) -> removeObject ( $ this ) ; } $ structureNodeParent -> setStructureNodeRelatedByStructureNodeId ( $ this ) ; $ this -> removeStructureNodeParentRelatedByStructureNodeId ( clone $ structureNodeParent ) ; $ structureNodeParent -> clear ( ) ; $ this -> collStructureNodesRelatedByParentId -> remove ( $ this -> collStructureNodesRelatedByParentId -> search ( $ structureNodeRelatedByParentId ) ) ; if ( null === $ this -> structureNodesRelatedByParentIdScheduledForDeletion ) { $ this -> structureNodesRelatedByParentIdScheduledForDeletion = clone $ this -> collStructureNodesRelatedByParentId ; $ this -> structureNodesRelatedByParentIdScheduledForDeletion -> clear ( ) ; } $ this -> structureNodesRelatedByParentIdScheduledForDeletion -> push ( $ structureNodeRelatedByParentId ) ; } return $ this ; }
Remove structureNodeRelatedByParentId of this object
through the kk_trixionary_structure_node_parent cross reference table.

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