Пример #1
0
	/**
	 * Declares an association between this object and a AbsenceEleveType object.
	 *
	 * @param      AbsenceEleveType $v
	 * @return     AbsenceEleveTraitement The current object (for fluent API support)
	 * @throws     PropelException
	 */
	public function setAbsenceEleveType(AbsenceEleveType $v = null)
	{
		if ($v === null) {
			$this->setATypeId(NULL);
		} else {
			$this->setATypeId($v->getId());
		}

		$this->aAbsenceEleveType = $v;

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

		return $this;
	}