Esempio n. 1
0
 /**
  * Exclude object from result
  *
  * @param   ChildDivisionRef $divisionRef Object to remove from the list of results
  *
  * @return $this|ChildDivisionRefQuery The current query, for fluid interface
  */
 public function prune($divisionRef = null)
 {
     if ($divisionRef) {
         $this->addUsingAlias(DivisionRefTableMap::COL_DIVISION, $divisionRef->getDivision(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 2
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->aMlbTeamRef) {
         $this->aMlbTeamRef->removePlayers($this);
     }
     if (null !== $this->aCardRef) {
         $this->aCardRef->removePlayers($this);
     }
     if (null !== $this->aDivisionRef) {
         $this->aDivisionRef->removePlayers($this);
     }
     if (null !== $this->aPositionRef) {
         $this->aPositionRef->removePlayers($this);
     }
     if (null !== $this->aTeams) {
         $this->aTeams->removePlayers($this);
     }
     $this->id = null;
     $this->lastn = null;
     $this->bats = null;
     $this->bday = null;
     $this->age = null;
     $this->mlb = null;
     $this->draft_year = null;
     $this->position = null;
     $this->card = null;
     $this->d_e = null;
     $this->lg = null;
     $this->mwbl = null;
     $this->category = null;
     $this->comment = null;
     $this->mwbl_link = null;
     $this->mlb_link = null;
     $this->mwbl_link_enabled = null;
     $this->mlb_link_enabled = null;
     $this->create_ts = null;
     $this->maint_ts = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Esempio n. 3
0
 /**
  * Filter the query by a related \DivisionRef object
  *
  * @param \DivisionRef|ObjectCollection $divisionRef 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 ChildTeamsQuery The current query, for fluid interface
  */
 public function filterByDivisionRef($divisionRef, $comparison = null)
 {
     if ($divisionRef instanceof \DivisionRef) {
         return $this->addUsingAlias(TeamsTableMap::COL_DIVISION, $divisionRef->getDivision(), $comparison);
     } elseif ($divisionRef instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TeamsTableMap::COL_DIVISION, $divisionRef->toKeyValue('PrimaryKey', 'Division'), $comparison);
     } else {
         throw new PropelException('filterByDivisionRef() only accepts arguments of type \\DivisionRef or Collection');
     }
 }
Esempio n. 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->aDivisionRef) {
         $this->aDivisionRef->removeTeams($this);
     }
     if (null !== $this->aLeagueRef) {
         $this->aLeagueRef->removeTeams($this);
     }
     $this->id = null;
     $this->link = null;
     $this->owner = null;
     $this->name = null;
     $this->nickname = null;
     $this->team_abbrev = null;
     $this->division = null;
     $this->email = null;
     $this->status = null;
     $this->comment = null;
     $this->league = null;
     $this->used = null;
     $this->email2 = null;
     $this->address = null;
     $this->city = null;
     $this->state = null;
     $this->zip = null;
     $this->phone = null;
     $this->team_link = null;
     $this->trade_link = null;
     $this->draft_link = null;
     $this->awards_link = null;
     $this->aim = null;
     $this->yahoo = null;
     $this->create_ts = null;
     $this->maint_ts = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }