/** * Internal mechanism to set the FunctionPhaseRoot id * * @param Skill $model * @param mixed $relatedId */ protected function doSetFunctionPhaseRootId(Skill $model, $relatedId) { if ($model->getFunctionPhaseId() !== $relatedId) { $model->setFunctionPhaseId($relatedId); return true; } return false; }