/** * Filter the query by a related EdtCalendrierPeriode object * * @param EdtCalendrierPeriode|PropelCollection $edtCalendrierPeriode The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return EdtEmplacementCoursQuery The current query, for fluid interface */ public function filterByEdtCalendrierPeriode($edtCalendrierPeriode, $comparison = null) { if ($edtCalendrierPeriode instanceof EdtCalendrierPeriode) { return $this ->addUsingAlias(EdtEmplacementCoursPeer::ID_CALENDRIER, $edtCalendrierPeriode->getIdCalendrier(), $comparison); } elseif ($edtCalendrierPeriode instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(EdtEmplacementCoursPeer::ID_CALENDRIER, $edtCalendrierPeriode->toKeyValue('PrimaryKey', 'IdCalendrier'), $comparison); } else { throw new PropelException('filterByEdtCalendrierPeriode() only accepts arguments of type EdtCalendrierPeriode or PropelCollection'); } }
/** * Declares an association between this object and a EdtCalendrierPeriode object. * * @param EdtCalendrierPeriode $v * @return EdtEmplacementCours The current object (for fluent API support) * @throws PropelException */ public function setEdtCalendrierPeriode(EdtCalendrierPeriode $v = null) { if ($v === null) { $this->setIdCalendrier(NULL); } else { $this->setIdCalendrier($v->getIdCalendrier()); } $this->aEdtCalendrierPeriode = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the EdtCalendrierPeriode object, it will not be re-added. if ($v !== null) { $v->addEdtEmplacementCours($this); } return $this; }
/** * Exclude object from result * * @param EdtCalendrierPeriode $edtCalendrierPeriode Object to remove from the list of results * * @return EdtCalendrierPeriodeQuery The current query, for fluid interface */ public function prune($edtCalendrierPeriode = null) { if ($edtCalendrierPeriode) { $this->addUsingAlias(EdtCalendrierPeriodePeer::ID_CALENDRIER, $edtCalendrierPeriode->getIdCalendrier(), Criteria::NOT_EQUAL); } return $this; }