コード例 #1
0
	/**
	 * Exclude object from result
	 *
	 * @param     AbsenceAgregationDecompte $absenceAgregationDecompte Object to remove from the list of results
	 *
	 * @return    AbsenceAgregationDecompteQuery The current query, for fluid interface
	 */
	public function prune($absenceAgregationDecompte = null)
	{
		if ($absenceAgregationDecompte) {
			$this->addCond('pruneCond0', $this->getAliasedColName(AbsenceAgregationDecomptePeer::ELEVE_ID), $absenceAgregationDecompte->getEleveId(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond1', $this->getAliasedColName(AbsenceAgregationDecomptePeer::DATE_DEMI_JOUNEE), $absenceAgregationDecompte->getDateDemiJounee(), Criteria::NOT_EQUAL);
			$this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
		}

		return $this;
	}
コード例 #2
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');
		}
	}