/** * Exclude object from result * * @param ChildPerformanceScore $performanceScore Object to remove from the list of results * * @return $this|ChildPerformanceScoreQuery The current query, for fluid interface */ public function prune($performanceScore = null) { if ($performanceScore) { $this->addUsingAlias(PerformanceScoreTableMap::COL_ID, $performanceScore->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \iuf\junia\model\PerformanceScore object * * @param \iuf\junia\model\PerformanceScore|ObjectCollection $performanceScore the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildScoreQuery The current query, for fluid interface */ public function filterByPerformanceScore($performanceScore, $comparison = null) { if ($performanceScore instanceof \iuf\junia\model\PerformanceScore) { return $this->addUsingAlias(ScoreTableMap::COL_ID, $performanceScore->getId(), $comparison); } elseif ($performanceScore instanceof ObjectCollection) { return $this->usePerformanceScoreQuery()->filterByPrimaryKeys($performanceScore->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByPerformanceScore() only accepts arguments of type \\iuf\\junia\\model\\PerformanceScore or Collection'); } }