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