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