/**
  * Filter the query by a related LeasingEventBookings object
  *
  * @param   LeasingEventBookings|PropelObjectCollection $leasingEventBookings  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 LeasingEventLeadsQuery 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(LeasingEventLeadsPeer::ID, $leasingEventBookings->getEventLeadsId(), $comparison);
     } elseif ($leasingEventBookings instanceof PropelObjectCollection) {
         return $this->useLeasingEventBookingsQuery()->filterByPrimaryKeys($leasingEventBookings->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByLeasingEventBookings() only accepts arguments of type LeasingEventBookings or PropelCollection');
     }
 }