Beispiel #1
0
 /**
  * Filter the query by a related \Haus23\Dtp\Model\Championship object
  *
  * @param \Haus23\Dtp\Model\Championship|ObjectCollection $championship 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 ChildPlayerQuery The current query, for fluid interface
  */
 public function filterByChampionship($championship, $comparison = null)
 {
     if ($championship instanceof \Haus23\Dtp\Model\Championship) {
         return $this->addUsingAlias(PlayerTableMap::COL_CHAMPIONSHIP_ID, $championship->getId(), $comparison);
     } elseif ($championship instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(PlayerTableMap::COL_CHAMPIONSHIP_ID, $championship->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByChampionship() only accepts arguments of type \\Haus23\\Dtp\\Model\\Championship or Collection');
     }
 }
Beispiel #2
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aChampionship) {
         $this->aChampionship->removeMatch($this);
     }
     if (null !== $this->aRound) {
         $this->aRound->removeMatch($this);
     }
     if (null !== $this->aLeague) {
         $this->aLeague->removeMatch($this);
     }
     if (null !== $this->aHometeam) {
         $this->aHometeam->removeMatchRelatedByHometeamId($this);
     }
     if (null !== $this->aAwayteam) {
         $this->aAwayteam->removeMatchRelatedByAwayteamId($this);
     }
     $this->id = null;
     $this->nr = null;
     $this->date = null;
     $this->result = null;
     $this->toto = null;
     $this->championship_id = null;
     $this->round_id = null;
     $this->league_id = null;
     $this->hometeam_id = null;
     $this->awayteam_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Beispiel #3
0
 /**
  * Filter the query by a related \Haus23\Dtp\Model\Championship object
  *
  * @param \Haus23\Dtp\Model\Championship|ObjectCollection $championship  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildRulesetQuery The current query, for fluid interface
  */
 public function filterByChampionship($championship, $comparison = null)
 {
     if ($championship instanceof \Haus23\Dtp\Model\Championship) {
         return $this->addUsingAlias(RulesetTableMap::COL_ID, $championship->getRulesetId(), $comparison);
     } elseif ($championship instanceof ObjectCollection) {
         return $this->useChampionshipQuery()->filterByPrimaryKeys($championship->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByChampionship() only accepts arguments of type \\Haus23\\Dtp\\Model\\Championship or Collection');
     }
 }
Beispiel #4
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aChampionship) {
         $this->aChampionship->removeRound($this);
     }
     $this->id = null;
     $this->nr = null;
     $this->published = null;
     $this->completed = null;
     $this->championship_id = null;
     $this->match_count = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Beispiel #5
0
 /**
  * @param ChildChampionship $championship The ChildChampionship object to add.
  */
 protected function doAddChampionship(ChildChampionship $championship)
 {
     $this->collChampionships[] = $championship;
     $championship->setRuleset($this);
 }
Beispiel #6
0
 /**
  * Exclude object from result
  *
  * @param   ChildChampionship $championship Object to remove from the list of results
  *
  * @return $this|ChildChampionshipQuery The current query, for fluid interface
  */
 public function prune($championship = null)
 {
     if ($championship) {
         $this->addUsingAlias(ChampionshipTableMap::COL_ID, $championship->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Beispiel #7
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aChampionship) {
         $this->aChampionship->removePlayer($this);
     }
     if (null !== $this->aAccount) {
         $this->aAccount->removeParticipations($this);
     }
     $this->id = null;
     $this->nr = null;
     $this->points = null;
     $this->extra_points = null;
     $this->total_points = null;
     $this->rank = null;
     $this->championship_id = null;
     $this->account_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }