public function getModel()
    {
        if (is_a($this->field, 'Modules\Dynamicfield\Entities\Field')) {
            $entity = Entity::getEntity($this->entityId, $this->entityType, $this->fieldId);
            $model = $entity->getFieldByLocale($this->locale);
        } else {
            $model = new RepeaterValue();
            if (is_numeric($this->translationId)) {
                $repeaterTranslate = RepeaterTranslation::firstOrNew(array('id' => $this->translationId));
                $model = $repeaterTranslate->getFieldValue($this->fieldId);
            }
        }

        return $model;
    }
public function getModel()
    {
        if (is_a($this->field, 'Modules\Dynamicfield\Entities\Field')) {
            $entity = Entity::getEntity($this->entityId, $this->entityType, $this->fieldId);
            $model = $entity->getFieldByLocale($this->locale);
        } else {
            $model = new RepeaterValue();
            if (is_numeric($this->translationId)) {
                $repeaterTranslate = RepeaterTranslation::firstOrNew(array('id' => $this->translationId));
                $model = $repeaterTranslate->getFieldValue($this->fieldId);
            }
        }

        return $model;
    }
public function getModel ( ) { if ( is_a ( $ this -> field , 'Modules\Dynamicfield\Entities\Field' ) ) { $ entity = Entity :: getEntity ( $ this -> entityId , $ this -> entityType , $ this -> fieldId ) ; $ model = $ entity -> getFieldByLocale ( $ this -> locale ) ; } else { $ model = new RepeaterValue ( ) ; if ( is_numeric ( $ this -> translationId ) ) { $ repeaterTranslate = RepeaterTranslation :: firstOrNew ( array ( 'id' => $ this -> translationId ) ) ; $ model = $ repeaterTranslate -> getFieldValue ( $ this -> fieldId ) ; } } return $ model ; }
Get Entity or RepeaterTranslation model by locale.

@return RepeaterValue
Get Entity or RepeaterTranslation model by locale .