Пример #1
0
 /**
  * Filter the query by a related LeasingUnitDressUp object
  *
  * @param   LeasingUnitDressUp|PropelObjectCollection $leasingUnitDressUp The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 LeasingUnitQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByLeasingUnitDressUp($leasingUnitDressUp, $comparison = null)
 {
     if ($leasingUnitDressUp instanceof LeasingUnitDressUp) {
         return $this->addUsingAlias(LeasingUnitPeer::DRESS_UP_ID, $leasingUnitDressUp->getId(), $comparison);
     } elseif ($leasingUnitDressUp instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(LeasingUnitPeer::DRESS_UP_ID, $leasingUnitDressUp->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByLeasingUnitDressUp() only accepts arguments of type LeasingUnitDressUp or PropelCollection');
     }
 }