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