コード例 #1
0
	/**
	 * Filter the query by a related AbsenceEleveTypeStatutAutorise object
	 *
	 * @param     AbsenceEleveTypeStatutAutorise $absenceEleveTypeStatutAutorise  the related object to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    AbsenceEleveTypeQuery The current query, for fluid interface
	 */
	public function filterByAbsenceEleveTypeStatutAutorise($absenceEleveTypeStatutAutorise, $comparison = null)
	{
		if ($absenceEleveTypeStatutAutorise instanceof AbsenceEleveTypeStatutAutorise) {
			return $this
				->addUsingAlias(AbsenceEleveTypePeer::ID, $absenceEleveTypeStatutAutorise->getIdAType(), $comparison);
		} elseif ($absenceEleveTypeStatutAutorise instanceof PropelCollection) {
			return $this
				->useAbsenceEleveTypeStatutAutoriseQuery()
				->filterByPrimaryKeys($absenceEleveTypeStatutAutorise->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByAbsenceEleveTypeStatutAutorise() only accepts arguments of type AbsenceEleveTypeStatutAutorise or PropelCollection');
		}
	}