/** * Filter the query by a related \Models\UserReport object * * @param \Models\UserReport|ObjectCollection $userReport the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildUserQuery The current query, for fluid interface */ public function filterByUserReportRelatedByIdUserReported($userReport, $comparison = null) { if ($userReport instanceof \Models\UserReport) { return $this->addUsingAlias(UserTableMap::COL_ID, $userReport->getIdUserReported(), $comparison); } elseif ($userReport instanceof ObjectCollection) { return $this->useUserReportRelatedByIdUserReportedQuery()->filterByPrimaryKeys($userReport->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByUserReportRelatedByIdUserReported() only accepts arguments of type \\Models\\UserReport or Collection'); } }