src/Component/Frontend/StructureModal/StructureModal.php
public function successNoFile(Form $form) : void
    {
        if ($this->presenter->isAjax() && $this->presenter->user->isAllowed(StructureAuthorizator::RES_STRUCTURE_MODAL))
        {
            $recipeSlug = $this->getRecipeSlug();
            $structure = $this->getStructure();
            $noFileVariables = $this->getNoFileVariables();

            $this->structureManager->getConnection()->beginTransaction();

            try
            {
                $structure = $this->structureManager->save(
                    $structure,
                    $recipeSlug,
                    $this->user
                );

                $this->structureValueManager->saveNoFileFields(
                    $structure,
                    $noFileVariables,
                    $form->getValues()
                );

                if ($recipeSlug->getRecipe()->isDynamic() && !$this->structure)
                {
                    $this->structureInPageManager->add($this->page, $structure);
                    $this->presenter->notificationAjax('Nezapomeňte', 'Nezapomeňte položku zařadit do příslušných kategorií.', 'warning', FALSE);
                }

                $this->structureManager->getConnection()->commit();
            }
            catch (\Exception $exception)
            {
                $this->structureManager->getConnection()->rollBack();
                throw $exception;
            }

            $this->structure = $structure;
            $this->structureId = $structure->getId();

            $this->presenter->notificationAjax(
                "{$recipeSlug->getRecipe()->getName()} uložena",
                "{$recipeSlug->getRecipe()->getName()} byla úspěšně uložena.",
                'success',
                FALSE
            );

            $this->onSaveNoFile();
        }
    }
public function successNoFile(Form $form) : void
    {
        if ($this->presenter->isAjax() && $this->presenter->user->isAllowed(StructureAuthorizator::RES_STRUCTURE_MODAL))
        {
            $recipeSlug = $this->getRecipeSlug();
            $structure = $this->getStructure();
            $noFileVariables = $this->getNoFileVariables();

            $this->structureManager->getConnection()->beginTransaction();

            try
            {
                $structure = $this->structureManager->save(
                    $structure,
                    $recipeSlug,
                    $this->user
                );

                $this->structureValueManager->saveNoFileFields(
                    $structure,
                    $noFileVariables,
                    $form->getValues()
                );

                if ($recipeSlug->getRecipe()->isDynamic() && !$this->structure)
                {
                    $this->structureInPageManager->add($this->page, $structure);
                    $this->presenter->notificationAjax('Nezapomeňte', 'Nezapomeňte položku zařadit do příslušných kategorií.', 'warning', FALSE);
                }

                $this->structureManager->getConnection()->commit();
            }
            catch (\Exception $exception)
            {
                $this->structureManager->getConnection()->rollBack();
                throw $exception;
            }

            $this->structure = $structure;
            $this->structureId = $structure->getId();

            $this->presenter->notificationAjax(
                "{$recipeSlug->getRecipe()->getName()} uložena",
                "{$recipeSlug->getRecipe()->getName()} byla úspěšně uložena.",
                'success',
                FALSE
            );

            $this->onSaveNoFile();
        }
    }
Success - non-file inputs form
@param Form $form
@throws \Propel\Runtime\Exception\PropelException
@throws \Exception