/**
  * Filter the query by a related \Jalle19\StatusManager\Database\Connection object
  *
  * @param \Jalle19\StatusManager\Database\Connection|ObjectCollection $connection 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 filterByConnection($connection, $comparison = null)
 {
     if ($connection instanceof \Jalle19\StatusManager\Database\Connection) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $connection->getUserId(), $comparison);
     } elseif ($connection instanceof ObjectCollection) {
         return $this->useConnectionQuery()->filterByPrimaryKeys($connection->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByConnection() only accepts arguments of type \\Jalle19\\StatusManager\\Database\\Connection or Collection');
     }
 }