/**
  * Exclude object from result
  *
  * @param   Cajachicadetalle $cajachicadetalle Object to remove from the list of results
  *
  * @return CajachicadetalleQuery The current query, for fluid interface
  */
 public function prune($cajachicadetalle = null)
 {
     if ($cajachicadetalle) {
         $this->addUsingAlias(CajachicadetallePeer::IDCAJACHICADETALLE, $cajachicadetalle->getIdcajachicadetalle(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #2
0
 /**
  * @param	Cajachicadetalle $cajachicadetalle The cajachicadetalle object to add.
  */
 protected function doAddCajachicadetalle($cajachicadetalle)
 {
     $this->collCajachicadetalles[] = $cajachicadetalle;
     $cajachicadetalle->setGasto($this);
 }
 /**
  * Adds an object to the instance pool.
  *
  * Propel keeps cached copies of objects in an instance pool when they are retrieved
  * from the database.  In some cases -- especially when you override doSelect*()
  * methods in your stub classes -- you may need to explicitly add objects
  * to the cache in order to ensure that the same objects are always returned by doSelect*()
  * and retrieveByPK*() calls.
  *
  * @param Cajachicadetalle $obj A Cajachicadetalle object.
  * @param      string $key (optional) key to use for instance map (for performance boost if key was already calculated externally).
  */
 public static function addInstanceToPool($obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if ($key === null) {
             $key = (string) $obj->getIdcajachicadetalle();
         }
         // if key === null
         CajachicadetallePeer::$instances[$key] = $obj;
     }
 }
Example #4
0
 /**
  * Filter the query by a related Cajachicadetalle object
  *
  * @param   Cajachicadetalle|PropelObjectCollection $cajachicadetalle  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 GastoQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByCajachicadetalle($cajachicadetalle, $comparison = null)
 {
     if ($cajachicadetalle instanceof Cajachicadetalle) {
         return $this->addUsingAlias(GastoPeer::IDGASTO, $cajachicadetalle->getIdgasto(), $comparison);
     } elseif ($cajachicadetalle instanceof PropelObjectCollection) {
         return $this->useCajachicadetalleQuery()->filterByPrimaryKeys($cajachicadetalle->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByCajachicadetalle() only accepts arguments of type Cajachicadetalle or PropelCollection');
     }
 }