/**
  * Filter the query by a related LeasingEventBookings object
  *
  * @param   LeasingEventBookings|PropelObjectCollection $leasingEventBookings The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 LeasingEventPaymentDetailsQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByLeasingEventBookings($leasingEventBookings, $comparison = null)
 {
     if ($leasingEventBookings instanceof LeasingEventBookings) {
         return $this->addUsingAlias(LeasingEventPaymentDetailsPeer::EVENT_BOOKINGS_ID, $leasingEventBookings->getId(), $comparison);
     } elseif ($leasingEventBookings instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(LeasingEventPaymentDetailsPeer::EVENT_BOOKINGS_ID, $leasingEventBookings->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByLeasingEventBookings() only accepts arguments of type LeasingEventBookings or PropelCollection');
     }
 }