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