/** * Filter the query by a related \ECP\FitEntry object * * @param \ECP\FitEntry|ObjectCollection $fitEntry the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildCompositionRowQuery The current query, for fluid interface */ public function filterByFitEntry($fitEntry, $comparison = null) { if ($fitEntry instanceof \ECP\FitEntry) { return $this->addUsingAlias(CompositionRowTableMap::COL_ID, $fitEntry->getCompositionrowid(), $comparison); } elseif ($fitEntry instanceof ObjectCollection) { return $this->useFitEntryQuery()->filterByPrimaryKeys($fitEntry->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByFitEntry() only accepts arguments of type \\ECP\\FitEntry or Collection'); } }