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