/** * Filter the query by a related \RigAttributes object * * @param \RigAttributes|ObjectCollection $rigAttributes The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildRigAttributeValuesQuery The current query, for fluid interface */ public function filterByRigAttributes($rigAttributes, $comparison = null) { if ($rigAttributes instanceof \RigAttributes) { return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttributes->getId(), $comparison); } elseif ($rigAttributes instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttributes->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRigAttributes() only accepts arguments of type \\RigAttributes or Collection'); } }