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