/** * Exclude object from result * * @param MeshingTrustLocal $meshingTrustLocal Object to remove from the list of results * * @return MeshingTrustLocalQuery The current query, for fluid interface */ public function prune($meshingTrustLocal = null) { if ($meshingTrustLocal) { $this->addCond('pruneCond0', $this->getAliasedColName(MeshingTrustLocalPeer::FROM_OWN_NODE_ID), $meshingTrustLocal->getFromOwnNodeId(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(MeshingTrustLocalPeer::TO_OWN_NODE_ID), $meshingTrustLocal->getToOwnNodeId(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related MeshingTrustLocal object * * @param MeshingTrustLocal $meshingTrustLocal the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return P2POwnNodeQuery The current query, for fluid interface */ public function filterByMeshingTrustLocalRelatedByToOwnNodeId($meshingTrustLocal, $comparison = null) { if ($meshingTrustLocal instanceof MeshingTrustLocal) { return $this->addUsingAlias(P2POwnNodePeer::ID, $meshingTrustLocal->getToOwnNodeId(), $comparison); } elseif ($meshingTrustLocal instanceof PropelCollection) { return $this->useMeshingTrustLocalRelatedByToOwnNodeIdQuery()->filterByPrimaryKeys($meshingTrustLocal->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByMeshingTrustLocalRelatedByToOwnNodeId() only accepts arguments of type MeshingTrustLocal or PropelCollection'); } }