/** * Filter the query by a related \Haus23\Dtp\Model\Match object * * @param \Haus23\Dtp\Model\Match|ObjectCollection $match the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildTeamQuery The current query, for fluid interface */ public function filterByMatchRelatedByAwayteamId($match, $comparison = null) { if ($match instanceof \Haus23\Dtp\Model\Match) { return $this->addUsingAlias(TeamTableMap::COL_ID, $match->getAwayteamId(), $comparison); } elseif ($match instanceof ObjectCollection) { return $this->useMatchRelatedByAwayteamIdQuery()->filterByPrimaryKeys($match->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByMatchRelatedByAwayteamId() only accepts arguments of type \\Haus23\\Dtp\\Model\\Match or Collection'); } }