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