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