/** * Exclude object from result * * @param LeasingSpecialistSchedule $leasingSpecialistSchedule Object to remove from the list of results * * @return LeasingSpecialistScheduleQuery The current query, for fluid interface */ public function prune($leasingSpecialistSchedule = null) { if ($leasingSpecialistSchedule) { $this->addUsingAlias(LeasingSpecialistSchedulePeer::ID, $leasingSpecialistSchedule->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * 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'); } }
/** * @param LeasingSpecialistSchedule $leasingSpecialistSchedule The leasingSpecialistSchedule object to add. */ protected function doAddLeasingSpecialistSchedule($leasingSpecialistSchedule) { $this->collLeasingSpecialistSchedules[] = $leasingSpecialistSchedule; $leasingSpecialistSchedule->setLeasingSpecialist($this); }