/** * Declares an association between this object and a Visitation object. * * @param Visitation $v * @return Transaction The current object (for fluent API support) * @throws PropelException */ public function setVisitation(Visitation $v = null) { // aggregate_column_relation behavior if (null !== $this->aVisitation && $v !== $this->aVisitation) { $this->oldVisitation = $this->aVisitation; } if ($v === null) { $this->setVisitationId(NULL); } else { $this->setVisitationId($v->getId()); } $this->aVisitation = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Visitation object, it will not be re-added. if ($v !== null) { $v->addTransaction($this); } return $this; }