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