/** * Internal mechanism to set the Skill id * * @param Video $model * @param mixed $relatedId */ protected function doSetSkillId(Video $model, $relatedId) { if ($model->getSkillId() !== $relatedId) { $model->setSkillId($relatedId); return true; } return false; }