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