/** * Filter the query by a related SystemLog object * * @param SystemLog|PropelObjectCollection $systemLog the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return UserQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterBySystemLog($systemLog, $comparison = null) { if ($systemLog instanceof SystemLog) { return $this->addUsingAlias(UserPeer::ID, $systemLog->getUserId(), $comparison); } elseif ($systemLog instanceof PropelObjectCollection) { return $this->useSystemLogQuery()->filterByPrimaryKeys($systemLog->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBySystemLog() only accepts arguments of type SystemLog or PropelCollection'); } }