Пример #1
0
 /**
  * Filter the query by a related \ORM\CreditPayment object
  *
  * @param \ORM\CreditPayment|ObjectCollection $creditPayment  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserDetailQuery The current query, for fluid interface
  */
 public function filterByCreditPayment($creditPayment, $comparison = null)
 {
     if ($creditPayment instanceof \ORM\CreditPayment) {
         return $this->addUsingAlias(UserDetailTableMap::COL_ID, $creditPayment->getCashierId(), $comparison);
     } elseif ($creditPayment instanceof ObjectCollection) {
         return $this->useCreditPaymentQuery()->filterByPrimaryKeys($creditPayment->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByCreditPayment() only accepts arguments of type \\ORM\\CreditPayment or Collection');
     }
 }