/** * Filter the query by a related \iuf\junia\model\Routine object * * @param \iuf\junia\model\Routine|ObjectCollection $routine 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 ChildPerformanceScoreQuery The current query, for fluid interface */ public function filterByRoutine($routine, $comparison = null) { if ($routine instanceof \iuf\junia\model\Routine) { return $this->addUsingAlias(PerformanceScoreTableMap::COL_ROUTINE_ID, $routine->getId(), $comparison); } elseif ($routine instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(PerformanceScoreTableMap::COL_ROUTINE_ID, $routine->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRoutine() only accepts arguments of type \\iuf\\junia\\model\\Routine or Collection'); } }