Пример #1
0
	/**
	 * Filter the query by a related EdtCreneau object
	 *
	 * @param     EdtCreneau|PropelCollection $edtCreneau 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 filterByEdtCreneau($edtCreneau, $comparison = null)
	{
		if ($edtCreneau instanceof EdtCreneau) {
			return $this
				->addUsingAlias(AbsenceEleveSaisiePeer::ID_EDT_CRENEAU, $edtCreneau->getIdDefiniePeriode(), $comparison);
		} elseif ($edtCreneau instanceof PropelCollection) {
			if (null === $comparison) {
				$comparison = Criteria::IN;
			}
			return $this
				->addUsingAlias(AbsenceEleveSaisiePeer::ID_EDT_CRENEAU, $edtCreneau->toKeyValue('PrimaryKey', 'IdDefiniePeriode'), $comparison);
		} else {
			throw new PropelException('filterByEdtCreneau() only accepts arguments of type EdtCreneau or PropelCollection');
		}
	}
Пример #2
0
	/**
	 * Declares an association between this object and a EdtCreneau object.
	 *
	 * @param      EdtCreneau $v
	 * @return     EdtEmplacementCours The current object (for fluent API support)
	 * @throws     PropelException
	 */
	public function setEdtCreneau(EdtCreneau $v = null)
	{
		if ($v === null) {
			$this->setIdDefiniePeriode(NULL);
		} else {
			$this->setIdDefiniePeriode($v->getIdDefiniePeriode());
		}

		$this->aEdtCreneau = $v;

		// Add binding for other direction of this n:n relationship.
		// If this object has already been added to the EdtCreneau object, it will not be re-added.
		if ($v !== null) {
			$v->addEdtEmplacementCours($this);
		}

		return $this;
	}
Пример #3
0
	/**
	 * Exclude object from result
	 *
	 * @param     EdtCreneau $edtCreneau Object to remove from the list of results
	 *
	 * @return    EdtCreneauQuery The current query, for fluid interface
	 */
	public function prune($edtCreneau = null)
	{
		if ($edtCreneau) {
			$this->addUsingAlias(EdtCreneauPeer::ID_DEFINIE_PERIODE, $edtCreneau->getIdDefiniePeriode(), Criteria::NOT_EQUAL);
		}

		return $this;
	}