/**
  * Filter the query by a related P2POwnNode object
  *
  * @param     P2POwnNode|PropelCollection $p2POwnNode The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    MeshingTrustLocalQuery The current query, for fluid interface
  */
 public function filterByToOwnNode($p2POwnNode, $comparison = null)
 {
     if ($p2POwnNode instanceof P2POwnNode) {
         return $this->addUsingAlias(MeshingTrustLocalPeer::TO_OWN_NODE_ID, $p2POwnNode->getId(), $comparison);
     } elseif ($p2POwnNode instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(MeshingTrustLocalPeer::TO_OWN_NODE_ID, $p2POwnNode->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByToOwnNode() only accepts arguments of type P2POwnNode or PropelCollection');
     }
 }