/** * Filter the query by a related LeasingAppointmentAssignment object * * @param LeasingAppointmentAssignment|PropelObjectCollection $leasingAppointmentAssignment 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 filterByLeasingAppointmentAssignment($leasingAppointmentAssignment, $comparison = null) { if ($leasingAppointmentAssignment instanceof LeasingAppointmentAssignment) { return $this->addUsingAlias(LeasingSpecialistPeer::ID, $leasingAppointmentAssignment->getLeasingSpecialistId(), $comparison); } elseif ($leasingAppointmentAssignment instanceof PropelObjectCollection) { return $this->useLeasingAppointmentAssignmentQuery()->filterByPrimaryKeys($leasingAppointmentAssignment->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByLeasingAppointmentAssignment() only accepts arguments of type LeasingAppointmentAssignment or PropelCollection'); } }