示例#1
0
文件: JudgeQuery.php 项目: iuf/junia
 /**
  * Filter the query by a related \iuf\junia\model\Startgroup object
  *
  * @param \iuf\junia\model\Startgroup|ObjectCollection $startgroup The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildJudgeQuery The current query, for fluid interface
  */
 public function filterByStartgroup($startgroup, $comparison = null)
 {
     if ($startgroup instanceof \iuf\junia\model\Startgroup) {
         return $this->addUsingAlias(JudgeTableMap::COL_STARTGROUP_ID, $startgroup->getId(), $comparison);
     } elseif ($startgroup instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(JudgeTableMap::COL_STARTGROUP_ID, $startgroup->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByStartgroup() only accepts arguments of type \\iuf\\junia\\model\\Startgroup or Collection');
     }
 }