/** * Declares an association between this object and a Adresse object. * * @param Adresse $v * @return ResponsableEleve The current object (for fluent API support) * @throws PropelException */ public function setAdresse(Adresse $v = null) { if ($v === null) { $this->setAdresseId(NULL); } else { $this->setAdresseId($v->getId()); } $this->aAdresse = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Adresse object, it will not be re-added. if ($v !== null) { $v->addResponsableEleve($this); } return $this; }
/** * Filter the query by a related Adresse object * * @param Adresse|PropelCollection $adresse The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return AbsenceEleveNotificationQuery The current query, for fluid interface */ public function filterByAdresse($adresse, $comparison = null) { if ($adresse instanceof Adresse) { return $this ->addUsingAlias(AbsenceEleveNotificationPeer::ADR_ID, $adresse->getId(), $comparison); } elseif ($adresse instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(AbsenceEleveNotificationPeer::ADR_ID, $adresse->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByAdresse() only accepts arguments of type Adresse or PropelCollection'); } }
/** * Exclude object from result * * @param Adresse $adresse Object to remove from the list of results * * @return AdresseQuery The current query, for fluid interface */ public function prune($adresse = null) { if ($adresse) { $this->addUsingAlias(AdressePeer::ADR_ID, $adresse->getId(), Criteria::NOT_EQUAL); } return $this; }