/** * Internal mechanism to set the Script id * * @param Localization $model * @param mixed $relatedId */ protected function doSetScriptId(Localization $model, $relatedId) { if ($model->getScriptId() !== $relatedId) { $model->setScriptId($relatedId); return true; } return false; }