/** * Filter the query by a related signInReason object * * @param signInReason|PropelObjectCollection $signInReason The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return signInQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterBysignInReason($signInReason, $comparison = null) { if ($signInReason instanceof signInReason) { return $this->addUsingAlias(signInPeer::REASON_ID, $signInReason->getId(), $comparison); } elseif ($signInReason instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(signInPeer::REASON_ID, $signInReason->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterBysignInReason() only accepts arguments of type signInReason or PropelCollection'); } }