/** * Exclude object from result * * @param AbsenceEleveJustification $absenceEleveJustification Object to remove from the list of results * * @return AbsenceEleveJustificationQuery The current query, for fluid interface */ public function prune($absenceEleveJustification = null) { if ($absenceEleveJustification) { $this->addUsingAlias(AbsenceEleveJustificationPeer::ID, $absenceEleveJustification->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a AbsenceEleveJustification object. * * @param AbsenceEleveJustification $v * @return AbsenceEleveTraitement The current object (for fluent API support) * @throws PropelException */ public function setAbsenceEleveJustification(AbsenceEleveJustification $v = null) { if ($v === null) { $this->setAJustificationId(NULL); } else { $this->setAJustificationId($v->getId()); } $this->aAbsenceEleveJustification = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the AbsenceEleveJustification object, it will not be re-added. if ($v !== null) { $v->addAbsenceEleveTraitement($this); } return $this; }
/** * Filter the query by a related AbsenceEleveJustification object * * @param AbsenceEleveJustification|PropelCollection $absenceEleveJustification The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return AbsenceEleveTraitementQuery The current query, for fluid interface */ public function filterByAbsenceEleveJustification($absenceEleveJustification, $comparison = null) { if ($absenceEleveJustification instanceof AbsenceEleveJustification) { return $this ->addUsingAlias(AbsenceEleveTraitementPeer::A_JUSTIFICATION_ID, $absenceEleveJustification->getId(), $comparison); } elseif ($absenceEleveJustification instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(AbsenceEleveTraitementPeer::A_JUSTIFICATION_ID, $absenceEleveJustification->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByAbsenceEleveJustification() only accepts arguments of type AbsenceEleveJustification or PropelCollection'); } }