/** * Update the aggregate column in the related Round object * * @param ConnectionInterface $con A connection object */ protected function updateRelatedRoundMatchCount(ConnectionInterface $con) { if ($round = $this->getRound()) { $round->updateMatchCount($con); } if ($this->oldRoundMatchCount) { $this->oldRoundMatchCount->updateMatchCount($con); $this->oldRoundMatchCount = null; } }
/** * Exclude object from result * * @param ChildRound $round Object to remove from the list of results * * @return $this|ChildRoundQuery The current query, for fluid interface */ public function prune($round = null) { if ($round) { $this->addUsingAlias(RoundTableMap::COL_ID, $round->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \Haus23\Dtp\Model\Round object * * @param \Haus23\Dtp\Model\Round|ObjectCollection $round the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildChampionshipQuery The current query, for fluid interface */ public function filterByRound($round, $comparison = null) { if ($round instanceof \Haus23\Dtp\Model\Round) { return $this->addUsingAlias(ChampionshipTableMap::COL_ID, $round->getChampionshipId(), $comparison); } elseif ($round instanceof ObjectCollection) { return $this->useRoundQuery()->filterByPrimaryKeys($round->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRound() only accepts arguments of type \\Haus23\\Dtp\\Model\\Round or Collection'); } }
/** * Filter the query by a related \Haus23\Dtp\Model\Round object * * @param \Haus23\Dtp\Model\Round|ObjectCollection $round The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildMatchQuery The current query, for fluid interface */ public function filterByRound($round, $comparison = null) { if ($round instanceof \Haus23\Dtp\Model\Round) { return $this->addUsingAlias(MatchTableMap::COL_ROUND_ID, $round->getId(), $comparison); } elseif ($round instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(MatchTableMap::COL_ROUND_ID, $round->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRound() only accepts arguments of type \\Haus23\\Dtp\\Model\\Round or Collection'); } }
/** * @param ChildRound $round The ChildRound object to add. */ protected function doAddRound(ChildRound $round) { $this->collRounds[] = $round; $round->setChampionship($this); }