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