Example #1
0
 /**
  * Filter the query by a related \Models\BugReport object
  *
  * @param \Models\BugReport|ObjectCollection $bugReport 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 filterByBugReport($bugReport, $comparison = null)
 {
     if ($bugReport instanceof \Models\BugReport) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $bugReport->getIdUser(), $comparison);
     } elseif ($bugReport instanceof ObjectCollection) {
         return $this->useBugReportQuery()->filterByPrimaryKeys($bugReport->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByBugReport() only accepts arguments of type \\Models\\BugReport or Collection');
     }
 }