/** * Declares an association between this object and a Professor object. * * @param Professor $v * @return Researchlineprofessor The current object (for fluent API support) * @throws PropelException */ public function setProfessor(Professor $v = null) { if ($v === null) { $this->setProfessorId(NULL); } else { $this->setProfessorId($v->getId()); } $this->aProfessor = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Professor object, it will not be re-added. if ($v !== null) { $v->addResearchlineprofessor($this); } return $this; }