コード例 #1
0
ファイル: BaseHelpI18nQuery.php プロジェクト: peterAK/pgs-sts
 /**
  * Filter the query by a related Help object
  *
  * @param   Help|PropelObjectCollection $help The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 HelpI18nQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByHelp($help, $comparison = null)
 {
     if ($help instanceof Help) {
         return $this->addUsingAlias(HelpI18nPeer::ID, $help->getId(), $comparison);
     } elseif ($help instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(HelpI18nPeer::ID, $help->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByHelp() only accepts arguments of type Help or PropelCollection');
     }
 }