public function addRelation($relationName, Document $document) { $this->getRelationManager()->addRelation($relationName, $document); return $this; }