Example #1
0
 /**
  * Filter the query by a related Consultaanticipo object
  *
  * @param   Consultaanticipo|PropelObjectCollection $consultaanticipo  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 ConsultaQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByConsultaanticipo($consultaanticipo, $comparison = null)
 {
     if ($consultaanticipo instanceof Consultaanticipo) {
         return $this->addUsingAlias(ConsultaPeer::IDCONSULTA, $consultaanticipo->getIdconsulta(), $comparison);
     } elseif ($consultaanticipo instanceof PropelObjectCollection) {
         return $this->useConsultaanticipoQuery()->filterByPrimaryKeys($consultaanticipo->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByConsultaanticipo() only accepts arguments of type Consultaanticipo or PropelCollection');
     }
 }