/** * 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 LeasingEventPlaceQuery 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(LeasingEventPlacePeer::ID, $leasingEventBookings->getEventPlaceId(), $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'); } }