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