Exemple #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildLeague $league Object to remove from the list of results
  *
  * @return $this|ChildLeagueQuery The current query, for fluid interface
  */
 public function prune($league = null)
 {
     if ($league) {
         $this->addUsingAlias(LeagueTableMap::COL_ID, $league->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Exemple #2
0
 /**
  * Declares an association between this object and a ChildLeague object.
  *
  * @param  ChildLeague $v
  * @return $this|\Haus23\Dtp\Model\Match The current object (for fluent API support)
  * @throws PropelException
  */
 public function setLeague(ChildLeague $v = null)
 {
     if ($v === null) {
         $this->setLeagueId(NULL);
     } else {
         $this->setLeagueId($v->getId());
     }
     $this->aLeague = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildLeague object, it will not be re-added.
     if ($v !== null) {
         $v->addMatch($this);
     }
     return $this;
 }
Exemple #3
0
 /**
  * Filter the query by a related \Haus23\Dtp\Model\League object
  *
  * @param \Haus23\Dtp\Model\League|ObjectCollection $league 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 filterByLeague($league, $comparison = null)
 {
     if ($league instanceof \Haus23\Dtp\Model\League) {
         return $this->addUsingAlias(MatchTableMap::COL_LEAGUE_ID, $league->getId(), $comparison);
     } elseif ($league instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(MatchTableMap::COL_LEAGUE_ID, $league->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByLeague() only accepts arguments of type \\Haus23\\Dtp\\Model\\League or Collection');
     }
 }