Ejemplo n.º 1
0
 /**
  * Filter the query by a related \Haus23\Dtp\Model\Player object
  *
  * @param \Haus23\Dtp\Model\Player|ObjectCollection $player 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 filterByPlayer($player, $comparison = null)
 {
     if ($player instanceof \Haus23\Dtp\Model\Player) {
         return $this->addUsingAlias(TipTableMap::COL_PLAYER_ID, $player->getId(), $comparison);
     } elseif ($player instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TipTableMap::COL_PLAYER_ID, $player->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByPlayer() only accepts arguments of type \\Haus23\\Dtp\\Model\\Player or Collection');
     }
 }
Ejemplo n.º 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildPlayer $player Object to remove from the list of results
  *
  * @return $this|ChildPlayerQuery The current query, for fluid interface
  */
 public function prune($player = null)
 {
     if ($player) {
         $this->addUsingAlias(PlayerTableMap::COL_ID, $player->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Filter the query by a related \Haus23\Dtp\Model\Player object
  *
  * @param \Haus23\Dtp\Model\Player|ObjectCollection $player  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildAccountQuery The current query, for fluid interface
  */
 public function filterByParticipations($player, $comparison = null)
 {
     if ($player instanceof \Haus23\Dtp\Model\Player) {
         return $this->addUsingAlias(AccountTableMap::COL_ID, $player->getAccountId(), $comparison);
     } elseif ($player instanceof ObjectCollection) {
         return $this->useParticipationsQuery()->filterByPrimaryKeys($player->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByParticipations() only accepts arguments of type \\Haus23\\Dtp\\Model\\Player or Collection');
     }
 }
Ejemplo n.º 4
0
 /**
  * @param ChildPlayer $participations The ChildPlayer object to add.
  */
 protected function doAddParticipations(ChildPlayer $participations)
 {
     $this->collParticipationss[] = $participations;
     $participations->setAccount($this);
 }
Ejemplo n.º 5
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);
 }
Ejemplo n.º 6
0
 /**
  * @param ChildPlayer $player The ChildPlayer object to add.
  */
 protected function doAddPlayer(ChildPlayer $player)
 {
     $this->collPlayers[] = $player;
     $player->setChampionship($this);
 }