/** * Filter the query by a related P2POwnNode object * * @param P2POwnNode $p2POwnNode the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return MeshingSchemaQuery The current query, for fluid interface */ public function filterByP2POwnNode($p2POwnNode, $comparison = null) { if ($p2POwnNode instanceof P2POwnNode) { return $this->addUsingAlias(MeshingSchemaPeer::ID, $p2POwnNode->getSchemaId(), $comparison); } elseif ($p2POwnNode instanceof PropelCollection) { return $this->useP2POwnNodeQuery()->filterByPrimaryKeys($p2POwnNode->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByP2POwnNode() only accepts arguments of type P2POwnNode or PropelCollection'); } }