/** * Internal mechanism to set the EndPosition id * * @param Skill $model * @param mixed $relatedId */ protected function doSetEndPositionId(Skill $model, $relatedId) { if ($model->getEndPositionId() !== $relatedId) { $model->setEndPositionId($relatedId); return true; } return false; }
/** * Filter the query by a related \gossi\trixionary\model\Skill object * * @param \gossi\trixionary\model\Skill|ObjectCollection $skill the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildPositionQuery The current query, for fluid interface */ public function filterBySkillRelatedByEndPositionId($skill, $comparison = null) { if ($skill instanceof \gossi\trixionary\model\Skill) { return $this->addUsingAlias(PositionTableMap::COL_ID, $skill->getEndPositionId(), $comparison); } elseif ($skill instanceof ObjectCollection) { return $this->useSkillRelatedByEndPositionIdQuery()->filterByPrimaryKeys($skill->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBySkillRelatedByEndPositionId() only accepts arguments of type \\gossi\\trixionary\\model\\Skill or Collection'); } }