Ejemplo n.º 1
0
 /**
  * Filter the query by a related Personalcirugia object
  *
  * @param   Personalcirugia|PropelObjectCollection $personalcirugia  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 filterByPersonalcirugia($personalcirugia, $comparison = null)
 {
     if ($personalcirugia instanceof Personalcirugia) {
         return $this->addUsingAlias(AgendaPeer::ID, $personalcirugia->getAgendaId(), $comparison);
     } elseif ($personalcirugia instanceof PropelObjectCollection) {
         return $this->usePersonalcirugiaQuery()->filterByPrimaryKeys($personalcirugia->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPersonalcirugia() only accepts arguments of type Personalcirugia or PropelCollection');
     }
 }