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