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