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