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