/**
  * Filter the query by a related LeasingPaymentTransactions object
  *
  * @param   LeasingPaymentTransactions|PropelObjectCollection $leasingPaymentTransactions  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 LeasingBookingsQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByLeasingPaymentTransactions($leasingPaymentTransactions, $comparison = null)
 {
     if ($leasingPaymentTransactions instanceof LeasingPaymentTransactions) {
         return $this->addUsingAlias(LeasingBookingsPeer::ID, $leasingPaymentTransactions->getBookingsId(), $comparison);
     } elseif ($leasingPaymentTransactions instanceof PropelObjectCollection) {
         return $this->useLeasingPaymentTransactionsQuery()->filterByPrimaryKeys($leasingPaymentTransactions->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByLeasingPaymentTransactions() only accepts arguments of type LeasingPaymentTransactions or PropelCollection');
     }
 }