Elcodi\Admin\RuleBundle\Controller\RuleController::updateAction PHP Метод

updateAction() публичный Метод

Should be POST
public updateAction ( Elcodi\Component\Rule\Entity\Interfaces\RuleInterface $entity, Symfony\Component\Form\FormInterface $form, boolean $isValid ) : RedirectResponse
$entity Elcodi\Component\Rule\Entity\Interfaces\RuleInterface Entity to update
$form Symfony\Component\Form\FormInterface Form view
$isValid boolean Request handle is valid
Результат Symfony\Component\HttpFoundation\RedirectResponse Redirect response
    public function updateAction(RuleInterface $entity, FormInterface $form, $isValid)
    {
        if ($isValid) {
            $this->get('elcodi.object_manager.rule')->flush($entity);
        }
        return $this->redirectRoute("admin_rule_view", ['id' => $entity->getId()]);
    }