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