Пример #1
0
 /**
  * Internal mechanism to set the Sport id
  * 
  * @param Position $model
  * @param mixed $relatedId
  */
 protected function doSetSportId(Position $model, $relatedId)
 {
     if ($model->getSportId() !== $relatedId) {
         $model->setSportId($relatedId);
         return true;
     }
     return false;
 }