/** * Filter the query by a related sfGuardUser object * * @param sfGuardUser|PropelCollection $sfGuardUser The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return FileQuery The current query, for fluid interface */ public function filterBysfGuardUser($sfGuardUser, $comparison = null) { if ($sfGuardUser instanceof sfGuardUser) { return $this->addUsingAlias(FilePeer::LAST_CHANGE_COMMIT_USER, $sfGuardUser->getId(), $comparison); } elseif ($sfGuardUser instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(FilePeer::LAST_CHANGE_COMMIT_USER, $sfGuardUser->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterBysfGuardUser() only accepts arguments of type sfGuardUser or PropelCollection'); } }
/** * Filter the query by a related sfGuardUser object * * @param sfGuardUser|PropelCollection $sfGuardUser The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CommentQuery The current query, for fluid interface */ public function filterBysfGuardUserRelatedByCheckUserId($sfGuardUser, $comparison = null) { if ($sfGuardUser instanceof sfGuardUser) { return $this->addUsingAlias(CommentPeer::CHECK_USER_ID, $sfGuardUser->getId(), $comparison); } elseif ($sfGuardUser instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(CommentPeer::CHECK_USER_ID, $sfGuardUser->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterBysfGuardUserRelatedByCheckUserId() only accepts arguments of type sfGuardUser or PropelCollection'); } }
/** * Filter the query by a related sfGuardUser object * * @param sfGuardUser|PropelObjectCollection $sfGuardUser The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PersonalcirugiaQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterBysfGuardUser($sfGuardUser, $comparison = null) { if ($sfGuardUser instanceof sfGuardUser) { return $this->addUsingAlias(PersonalcirugiaPeer::PERSONAL_ID, $sfGuardUser->getId(), $comparison); } elseif ($sfGuardUser instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(PersonalcirugiaPeer::PERSONAL_ID, $sfGuardUser->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterBysfGuardUser() only accepts arguments of type sfGuardUser or PropelCollection'); } }