When editing a record, an error occurs:
enter image description here
My controller in which I pass two actions view and update:
public function