/**
  * Filter the query by a related Cajachica object
  *
  * @param   Cajachica|PropelObjectCollection $cajachica The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 CajachicadetalleQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByCajachica($cajachica, $comparison = null)
 {
     if ($cajachica instanceof Cajachica) {
         return $this->addUsingAlias(CajachicadetallePeer::IDCAJACHICA, $cajachica->getIdcajachica(), $comparison);
     } elseif ($cajachica instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(CajachicadetallePeer::IDCAJACHICA, $cajachica->toKeyValue('PrimaryKey', 'Idcajachica'), $comparison);
     } else {
         throw new PropelException('filterByCajachica() only accepts arguments of type Cajachica or PropelCollection');
     }
 }