Esempio n. 1
0
 /**
  * Filter the query by a related Medicoespecialidad object
  *
  * @param   Medicoespecialidad|PropelObjectCollection $medicoespecialidad  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 EspecialidadQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByMedicoespecialidad($medicoespecialidad, $comparison = null)
 {
     if ($medicoespecialidad instanceof Medicoespecialidad) {
         return $this->addUsingAlias(EspecialidadPeer::IDESPECIALIDAD, $medicoespecialidad->getIdespecialidad(), $comparison);
     } elseif ($medicoespecialidad instanceof PropelObjectCollection) {
         return $this->useMedicoespecialidadQuery()->filterByPrimaryKeys($medicoespecialidad->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByMedicoespecialidad() only accepts arguments of type Medicoespecialidad or PropelCollection');
     }
 }