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