/**
  * Create a new VariableRepository instance.
  *
  * @param VariableModel $model
  * @param Decorator     $decorator
  */
 public function __construct(VariableModel $model, Decorator $decorator)
 {
     $this->model = $decorator->decorate($model->firstOrNew([]));
 }
 /**
  * Create a new VariableFormBuilder instance.
  *
  * @param Form          $form
  * @param VariableModel $model
  */
 public function __construct(Form $form, VariableModel $model)
 {
     $this->setEntry($model->firstOrNew([])->getId());
     parent::__construct($form);
 }