Exemplo n.º 1
0
	/**
	 * Filter the query by a related EdtSalle object
	 *
	 * @param     EdtSalle|PropelCollection $edtSalle 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 filterByEdtSalle($edtSalle, $comparison = null)
	{
		if ($edtSalle instanceof EdtSalle) {
			return $this
				->addUsingAlias(EdtEmplacementCoursPeer::ID_SALLE, $edtSalle->getIdSalle(), $comparison);
		} elseif ($edtSalle instanceof PropelCollection) {
			if (null === $comparison) {
				$comparison = Criteria::IN;
			}
			return $this
				->addUsingAlias(EdtEmplacementCoursPeer::ID_SALLE, $edtSalle->toKeyValue('PrimaryKey', 'IdSalle'), $comparison);
		} else {
			throw new PropelException('filterByEdtSalle() only accepts arguments of type EdtSalle or PropelCollection');
		}
	}
Exemplo n.º 2
0
	/**
	 * Declares an association between this object and a EdtSalle object.
	 *
	 * @param      EdtSalle $v
	 * @return     EdtEmplacementCours The current object (for fluent API support)
	 * @throws     PropelException
	 */
	public function setEdtSalle(EdtSalle $v = null)
	{
		if ($v === null) {
			$this->setIdSalle(NULL);
		} else {
			$this->setIdSalle($v->getIdSalle());
		}

		$this->aEdtSalle = $v;

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

		return $this;
	}
Exemplo n.º 3
0
	/**
	 * Exclude object from result
	 *
	 * @param     EdtSalle $edtSalle Object to remove from the list of results
	 *
	 * @return    EdtSalleQuery The current query, for fluid interface
	 */
	public function prune($edtSalle = null)
	{
		if ($edtSalle) {
			$this->addUsingAlias(EdtSallePeer::ID_SALLE, $edtSalle->getIdSalle(), Criteria::NOT_EQUAL);
		}

		return $this;
	}