/** * 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 sfGuardUserQuery 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(sfGuardUserPeer::ID, $personalcirugia->getPersonalId(), $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'); } }