コード例 #1
0
 /**
  * Filter the query by a related DetailTransaksi object
  *
  * @param   DetailTransaksi|PropelObjectCollection $detailTransaksi  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 TransaksiQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByDetailTransaksi($detailTransaksi, $comparison = null)
 {
     if ($detailTransaksi instanceof DetailTransaksi) {
         return $this->addUsingAlias(TransaksiPeer::ID, $detailTransaksi->getIdTransaksi(), $comparison);
     } elseif ($detailTransaksi instanceof PropelObjectCollection) {
         return $this->useDetailTransaksiQuery()->filterByPrimaryKeys($detailTransaksi->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByDetailTransaksi() only accepts arguments of type DetailTransaksi or PropelCollection');
     }
 }