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