This topic contains 4 replies, has 2 voices, and was last updated by adriwan_kenoby 5 years, 10 months ago.
- Topic
In order to use all features provide by Oro I want to use the service
oro_form.update_handler
.An exemple using the deprecated
oro_form.model.update_handler
:123456789101112131415161718192021private function update(Host $host){return $this->get('oro_form.model.update_handler')->handleUpdate($host,$this->get('sinabs.form.host'),function (Host $host) {return ['route' => 'sinabs_host_update','parameters' => ['id' => $host->getId()]];},function (Host $host) {return ['route' => 'sinabs_host_view','parameters' => ['id' => $host->getId()]];},$this->get('translator')->trans('sinabs.hosting.host.controller.saved.message'),$this->get('sinabs.form.handler.host'));}I want to implement the same logic (with redirection to index or view page) but i don’t understand how it work…
Example :
123456789protected function update(Host $host, Request $request){return $this->get('oro_form.update_handler')->update($host,$this->get('sinabs.form.host'),$this->get('translator')->trans('sinabs.hosting.host.form.message.saved'),$request);}This always redirect me to the login page with the error
You have lost your access to organization "ORO". Please relogin.
Could you point me what i am doing wrong ?
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.