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