Example #1
0
 /**
  * Filter the query by a related \iuf\junia\model\Event object
  *
  * @param \iuf\junia\model\Event|ObjectCollection $event the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildPerformanceStatisticQuery The current query, for fluid interface
  */
 public function filterByEventRelatedByPerformanceTotalStatisticId($event, $comparison = null)
 {
     if ($event instanceof \iuf\junia\model\Event) {
         return $this->addUsingAlias(PerformanceStatisticTableMap::COL_ID, $event->getPerformanceTotalStatisticId(), $comparison);
     } elseif ($event instanceof ObjectCollection) {
         return $this->useEventRelatedByPerformanceTotalStatisticIdQuery()->filterByPrimaryKeys($event->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByEventRelatedByPerformanceTotalStatisticId() only accepts arguments of type \\iuf\\junia\\model\\Event or Collection');
     }
 }