/** * Declares an association between this object and a P2POwnNode object. * * @param P2POwnNode $v * @return MeshingTrustLocal The current object (for fluent API support) * @throws PropelException */ public function setFromOwnNode(P2POwnNode $v = null) { if ($v === null) { $this->setFromOwnNodeId(NULL); } else { $this->setFromOwnNodeId($v->getId()); } $this->aFromOwnNode = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the P2POwnNode object, it will not be re-added. if ($v !== null) { $v->addMeshingTrustLocalRelatedByFromOwnNodeId($this); } return $this; }