/** * Exclude object from result * * @param ChildLeagueRef $leagueRef Object to remove from the list of results * * @return $this|ChildLeagueRefQuery The current query, for fluid interface */ public function prune($leagueRef = null) { if ($leagueRef) { $this->addUsingAlias(LeagueRefTableMap::COL_LEAGUE, $leagueRef->getLeague(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \LeagueRef object * * @param \LeagueRef|ObjectCollection $leagueRef 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 filterByLeagueRef($leagueRef, $comparison = null) { if ($leagueRef instanceof \LeagueRef) { return $this->addUsingAlias(TeamsTableMap::COL_LEAGUE, $leagueRef->getLeague(), $comparison); } elseif ($leagueRef instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(TeamsTableMap::COL_LEAGUE, $leagueRef->toKeyValue('PrimaryKey', 'League'), $comparison); } else { throw new PropelException('filterByLeagueRef() only accepts arguments of type \\LeagueRef or Collection'); } }
/** * 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); }