/** * @param ChildTip $tip The ChildTip object to add. */ protected function doAddTip(ChildTip $tip) { $this->collTips[] = $tip; $tip->setMatch($this); }
/** * Exclude object from result * * @param ChildTip $tip Object to remove from the list of results * * @return $this|ChildTipQuery The current query, for fluid interface */ public function prune($tip = null) { if ($tip) { $this->addUsingAlias(TipTableMap::COL_ID, $tip->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * 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 ChildPlayerQuery The current query, for fluid interface */ public function filterByTip($tip, $comparison = null) { if ($tip instanceof \Haus23\Dtp\Model\Tip) { return $this->addUsingAlias(PlayerTableMap::COL_ID, $tip->getPlayerId(), $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'); } }