Ejemplo n.º 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 filterByEventRelatedByPerformanceExecutionStatisticId($event, $comparison = null)
 {
     if ($event instanceof \iuf\junia\model\Event) {
         return $this->addUsingAlias(PerformanceStatisticTableMap::COL_ID, $event->getPerformanceExecutionStatisticId(), $comparison);
     } elseif ($event instanceof ObjectCollection) {
         return $this->useEventRelatedByPerformanceExecutionStatisticIdQuery()->filterByPrimaryKeys($event->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByEventRelatedByPerformanceExecutionStatisticId() only accepts arguments of type \\iuf\\junia\\model\\Event or Collection');
     }
 }