/** * 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 filterByUserReportRelatedByIdUser($userReport, $comparison = null) { if ($userReport instanceof \Models\UserReport) { return $this->addUsingAlias(UserTableMap::COL_ID, $userReport->getIdUser(), $comparison); } elseif ($userReport instanceof ObjectCollection) { return $this->useUserReportRelatedByIdUserQuery()->filterByPrimaryKeys($userReport->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByUserReportRelatedByIdUser() only accepts arguments of type \\Models\\UserReport or Collection'); } }