예제 #1
0
 /**
  * @param ChildPlayers $players The ChildPlayers object to add.
  */
 protected function doAddPlayers(ChildPlayers $players)
 {
     $this->collPlayerss[] = $players;
     $players->setMlbTeamRef($this);
 }
예제 #2
0
 /**
  * Filter the query by a related \Players object
  *
  * @param \Players|ObjectCollection $players the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildPositionRefQuery The current query, for fluid interface
  */
 public function filterByPlayers($players, $comparison = null)
 {
     if ($players instanceof \Players) {
         return $this->addUsingAlias(PositionRefTableMap::COL_POSITION, $players->getPosition(), $comparison);
     } elseif ($players instanceof ObjectCollection) {
         return $this->usePlayersQuery()->filterByPrimaryKeys($players->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPlayers() only accepts arguments of type \\Players or Collection');
     }
 }
예제 #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildPlayers $players Object to remove from the list of results
  *
  * @return $this|ChildPlayersQuery The current query, for fluid interface
  */
 public function prune($players = null)
 {
     if ($players) {
         $this->addUsingAlias(PlayersTableMap::COL_ID, $players->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }