/**
	 * Filter the query by a related EdtCalendrierPeriode object
	 *
	 * @param     EdtCalendrierPeriode|PropelCollection $edtCalendrierPeriode The related object(s) to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    EdtEmplacementCoursQuery The current query, for fluid interface
	 */
	public function filterByEdtCalendrierPeriode($edtCalendrierPeriode, $comparison = null)
	{
		if ($edtCalendrierPeriode instanceof EdtCalendrierPeriode) {
			return $this
				->addUsingAlias(EdtEmplacementCoursPeer::ID_CALENDRIER, $edtCalendrierPeriode->getIdCalendrier(), $comparison);
		} elseif ($edtCalendrierPeriode instanceof PropelCollection) {
			if (null === $comparison) {
				$comparison = Criteria::IN;
			}
			return $this
				->addUsingAlias(EdtEmplacementCoursPeer::ID_CALENDRIER, $edtCalendrierPeriode->toKeyValue('PrimaryKey', 'IdCalendrier'), $comparison);
		} else {
			throw new PropelException('filterByEdtCalendrierPeriode() only accepts arguments of type EdtCalendrierPeriode or PropelCollection');
		}
	}