/** * Declares an association between this object and a ChildDealerTeam object. * * @param ChildDealerTeam $v * @return \DealerTeam\Model\DealerTeamVersion The current object (for fluent API support) * @throws PropelException */ public function setDealerTeam(ChildDealerTeam $v = null) { if ($v === null) { $this->setId(NULL); } else { $this->setId($v->getId()); } $this->aDealerTeam = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildDealerTeam object, it will not be re-added. if ($v !== null) { $v->addDealerTeamVersion($this); } return $this; }
/** * Exclude object from result * * @param ChildDealerTeam $dealerTeam Object to remove from the list of results * * @return ChildDealerTeamQuery The current query, for fluid interface */ public function prune($dealerTeam = null) { if ($dealerTeam) { $this->addUsingAlias(DealerTeamTableMap::ID, $dealerTeam->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \DealerTeam\Model\DealerTeam object * * @param \DealerTeam\Model\DealerTeam|ObjectCollection $dealerTeam The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildDealerTeamVersionQuery The current query, for fluid interface */ public function filterByDealerTeam($dealerTeam, $comparison = null) { if ($dealerTeam instanceof \DealerTeam\Model\DealerTeam) { return $this->addUsingAlias(DealerTeamVersionTableMap::ID, $dealerTeam->getId(), $comparison); } elseif ($dealerTeam instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(DealerTeamVersionTableMap::ID, $dealerTeam->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByDealerTeam() only accepts arguments of type \\DealerTeam\\Model\\DealerTeam or Collection'); } }