コード例 #1
0
ファイル: BaseEleveQuery.php プロジェクト: rhertzog/lcs
	/**
	 * Filter the query by a related AbsenceAgregationDecompte object
	 *
	 * @param     AbsenceAgregationDecompte $absenceAgregationDecompte  the related object to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    EleveQuery The current query, for fluid interface
	 */
	public function filterByAbsenceAgregationDecompte($absenceAgregationDecompte, $comparison = null)
	{
		if ($absenceAgregationDecompte instanceof AbsenceAgregationDecompte) {
			return $this
				->addUsingAlias(ElevePeer::ID_ELEVE, $absenceAgregationDecompte->getEleveId(), $comparison);
		} elseif ($absenceAgregationDecompte instanceof PropelCollection) {
			return $this
				->useAbsenceAgregationDecompteQuery()
				->filterByPrimaryKeys($absenceAgregationDecompte->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByAbsenceAgregationDecompte() only accepts arguments of type AbsenceAgregationDecompte or PropelCollection');
		}
	}