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