src/CRUDlex/Controller.php
protected function setValidationFailedFlashes($optimisticLocking, $mode)
    {
        $this->session->getFlashBag()->add('danger', $this->translator->trans('crudlex.'.$mode.'.error'));
        if ($optimisticLocking) {
            $this->session->getFlashBag()->add('danger', $this->translator->trans('crudlex.edit.locked'));
        }
    }
protected function setValidationFailedFlashes($optimisticLocking, $mode)
    {
        $this->session->getFlashBag()->add('danger', $this->translator->trans('crudlex.'.$mode.'.error'));
        if ($optimisticLocking) {
            $this->session->getFlashBag()->add('danger', $this->translator->trans('crudlex.edit.locked'));
        }
    }
protected function setValidationFailedFlashes ( $ optimisticLocking , $ mode ) { $ this -> session -> getFlashBag ( ) -> add ( 'danger' , $ this -> translator -> trans ( 'crudlex.' . $ mode . '.error' ) ) ; if ( $ optimisticLocking ) { $ this -> session -> getFlashBag ( ) -> add ( 'danger' , $ this -> translator -> trans ( 'crudlex.edit.locked' ) ) ; } }
Sets the flashes of a failed entity modification.

@param boolean $optimisticLocking
whether the optimistic locking failed
@param string $mode
the modification mode, either 'create' or 'edit'
Sets the flashes of a failed entity modification .