Example #1
0
 /**
  * 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');
     }
 }
Example #2
0
 /**
  * Filter the query by a related \Haus23\Dtp\Model\Match object
  *
  * @param \Haus23\Dtp\Model\Match|ObjectCollection $match 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 ChildTipQuery The current query, for fluid interface
  */
 public function filterByMatch($match, $comparison = null)
 {
     if ($match instanceof \Haus23\Dtp\Model\Match) {
         return $this->addUsingAlias(TipTableMap::COL_MATCH_ID, $match->getId(), $comparison);
     } elseif ($match instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TipTableMap::COL_MATCH_ID, $match->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByMatch() only accepts arguments of type \\Haus23\\Dtp\\Model\\Match or Collection');
     }
 }
Example #3
0
 /**
  * @param ChildMatch $match The ChildMatch object to add.
  */
 protected function doAddMatch(ChildMatch $match)
 {
     $this->collMatches[] = $match;
     $match->setRound($this);
 }
Example #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->aPlayer) {
         $this->aPlayer->removeTip($this);
     }
     if (null !== $this->aMatch) {
         $this->aMatch->removeTip($this);
     }
     $this->id = null;
     $this->bet = null;
     $this->toto = null;
     $this->joker = null;
     $this->extra_joker = null;
     $this->points = null;
     $this->match_id = null;
     $this->player_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Example #5
0
 /**
  * Exclude object from result
  *
  * @param   ChildMatch $match Object to remove from the list of results
  *
  * @return $this|ChildMatchQuery The current query, for fluid interface
  */
 public function prune($match = null)
 {
     if ($match) {
         $this->addUsingAlias(MatchTableMap::COL_ID, $match->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #6
0
 /**
  * @param ChildMatch $match The ChildMatch object to add.
  */
 protected function doAddMatch(ChildMatch $match)
 {
     $this->collMatches[] = $match;
     $match->setChampionship($this);
 }
Example #7
0
 /**
  * @param ChildMatch $matchRelatedByAwayteamId The ChildMatch object to add.
  */
 protected function doAddMatchRelatedByAwayteamId(ChildMatch $matchRelatedByAwayteamId)
 {
     $this->collMatchesRelatedByAwayteamId[] = $matchRelatedByAwayteamId;
     $matchRelatedByAwayteamId->setAwayteam($this);
 }