/**
  * Filter the query by a related LeasingAppointmentLeads object
  *
  * @param   LeasingAppointmentLeads|PropelObjectCollection $leasingAppointmentLeads  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 LeasingNationalityQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByLeasingAppointmentLeads($leasingAppointmentLeads, $comparison = null)
 {
     if ($leasingAppointmentLeads instanceof LeasingAppointmentLeads) {
         return $this->addUsingAlias(LeasingNationalityPeer::ID, $leasingAppointmentLeads->getNationalityId(), $comparison);
     } elseif ($leasingAppointmentLeads instanceof PropelObjectCollection) {
         return $this->useLeasingAppointmentLeadsQuery()->filterByPrimaryKeys($leasingAppointmentLeads->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByLeasingAppointmentLeads() only accepts arguments of type LeasingAppointmentLeads or PropelCollection');
     }
 }