示例#1
0
文件: EventQuery.php 项目: iuf/junia
 /**
  * Filter the query by a related \iuf\junia\model\PerformanceStatistic object
  *
  * @param \iuf\junia\model\PerformanceStatistic|ObjectCollection $performanceStatistic 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 ChildEventQuery The current query, for fluid interface
  */
 public function filterByPerformanceMusicAndTimingStatistic($performanceStatistic, $comparison = null)
 {
     if ($performanceStatistic instanceof \iuf\junia\model\PerformanceStatistic) {
         return $this->addUsingAlias(EventTableMap::COL_PERFORMANCE_MUSIC_AND_TIMING_STATISTIC_ID, $performanceStatistic->getId(), $comparison);
     } elseif ($performanceStatistic instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(EventTableMap::COL_PERFORMANCE_MUSIC_AND_TIMING_STATISTIC_ID, $performanceStatistic->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByPerformanceMusicAndTimingStatistic() only accepts arguments of type \\iuf\\junia\\model\\PerformanceStatistic or Collection');
     }
 }