src/Lego/Widget/Form.php
protected function saveFieldsValueToStore()
    {
        $this->editableFields()->each(function (Field $field) {
            if ($field->isDoesntStore()) {
                return;
            }

            $field->syncValueToStore();
        });

        $this->events->fire('saving', [$this->data, $this]);
        if ($this->getStore()->save()) {
            $this->syncFieldsValueFromStore();
            $this->events->fire('saved', [$this->data, $this]);

            return true;
        }

        return false;
    }
protected function saveFieldsValueToStore()
    {
        $this->editableFields()->each(function (Field $field) {
            if ($field->isDoesntStore()) {
                return;
            }

            $field->syncValueToStore();
        });

        $this->events->fire('saving', [$this->data, $this]);
        if ($this->getStore()->save()) {
            $this->syncFieldsValueFromStore();
            $this->events->fire('saved', [$this->data, $this]);

            return true;
        }

        return false;
    }
protected function saveFieldsValueToStore ( ) { $ this -> editableFields ( ) -> each ( function ( Field $ field ) { if ( $ field -> isDoesntStore ( ) ) { return ; } $ field -> syncValueToStore ( ) ; } ) ; $ this -> events -> fire ( 'saving' , [ $ this -> data , $ this ] ) ; if ( $ this -> getStore ( ) -> save ( ) ) { $ this -> syncFieldsValueFromStore ( ) ; $ this -> events -> fire ( 'saved' , [ $ this -> data , $ this ] ) ; return true ; } return false ; }
sync field's value to source.
sync field s value to source .