Exemplo n.º 1
0
	/**
	 * Declares an association between this object and a UtilisateurProfessionnel object.
	 *
	 * @param      UtilisateurProfessionnel $v
	 * @return     JProfesseursMatieres The current object (for fluent API support)
	 * @throws     PropelException
	 */
	public function setProfesseur(UtilisateurProfessionnel $v = null)
	{
		if ($v === null) {
			$this->setIdProfesseur(NULL);
		} else {
			$this->setIdProfesseur($v->getLogin());
		}

		$this->aProfesseur = $v;

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

		return $this;
	}