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