/** * Filter the query by a related Conceptocajachica object * * @param Conceptocajachica|PropelObjectCollection $conceptocajachica The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CajachicaQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByConceptocajachica($conceptocajachica, $comparison = null) { if ($conceptocajachica instanceof Conceptocajachica) { return $this->addUsingAlias(CajachicaPeer::IDCONCEPTOCAJACHICA, $conceptocajachica->getIdconceptocajachica(), $comparison); } elseif ($conceptocajachica instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(CajachicaPeer::IDCONCEPTOCAJACHICA, $conceptocajachica->toKeyValue('PrimaryKey', 'Idconceptocajachica'), $comparison); } else { throw new PropelException('filterByConceptocajachica() only accepts arguments of type Conceptocajachica or PropelCollection'); } }
/** * Filter the query by a related Cajachica object * * @param Cajachica|PropelObjectCollection $cajachica the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ConceptocajachicaQuery 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(ConceptocajachicaPeer::IDCONCEPTOCAJACHICA, $cajachica->getIdconceptocajachica(), $comparison); } elseif ($cajachica instanceof PropelObjectCollection) { return $this->useCajachicaQuery()->filterByPrimaryKeys($cajachica->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByCajachica() only accepts arguments of type Cajachica or PropelCollection'); } }