/** * Declares an association between this object and a ChildScore object. * * @param ChildScore $v * @return $this|\iuf\junia\model\PerformanceScore The current object (for fluent API support) * @throws PropelException */ public function setScore(ChildScore $v = null) { if ($v === null) { $this->setId(NULL); } else { $this->setId($v->getId()); } $this->aScore = $v; // Add binding for other direction of this 1:1 relationship. if ($v !== null) { $v->setPerformanceScore($this); } return $this; }
/** * Filter the query by a related \iuf\junia\model\Score object * * @param \iuf\junia\model\Score|ObjectCollection $score 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 filterByScore($score, $comparison = null) { if ($score instanceof \iuf\junia\model\Score) { return $this->addUsingAlias(PerformanceScoreTableMap::COL_ID, $score->getId(), $comparison); } elseif ($score instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(PerformanceScoreTableMap::COL_ID, $score->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByScore() only accepts arguments of type \\iuf\\junia\\model\\Score or Collection'); } }
/** * Exclude object from result * * @param ChildScore $score Object to remove from the list of results * * @return $this|ChildScoreQuery The current query, for fluid interface */ public function prune($score = null) { if ($score) { $this->addUsingAlias(ScoreTableMap::COL_ID, $score->getId(), Criteria::NOT_EQUAL); } return $this; }