Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * Declares an association between this object and a ChildRound object.
  *
  * @param  ChildRound $v
  * @return $this|\Haus23\Dtp\Model\Match The current object (for fluent API support)
  * @throws PropelException
  */
 public function setRound(ChildRound $v = null)
 {
     // aggregate_column_relation behavior
     if (null !== $this->aRound && $v !== $this->aRound) {
         $this->oldRoundMatchCount = $this->aRound;
     }
     if ($v === null) {
         $this->setRoundId(NULL);
     } else {
         $this->setRoundId($v->getId());
     }
     $this->aRound = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildRound object, it will not be re-added.
     if ($v !== null) {
         $v->addMatch($this);
     }
     return $this;
 }
Exemplo n.º 3
0
 /**
  * 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');
     }
 }