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