Skip to content

Commit

Permalink
Edit Principal, corrección en modelTemplate page
Browse files Browse the repository at this point in the history
  • Loading branch information
gerMdz committed Aug 12, 2021
1 parent 8a22f27 commit 1eda7e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Form/PrincipalType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Entity\ModelTemplate;
use App\Entity\Principal;
use App\Repository\ModelTemplateRepository;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
Expand Down Expand Up @@ -95,6 +96,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)

->add('modelTemplate', EntityType::class, [
'class' => ModelTemplate::class,
'query_builder' => function (ModelTemplateRepository $er) {
return $er->findModelTemplatesByBlock('page');
},
'required' => false,
'label' => 'Template',
'help'=>'Plantilla ya definida',
Expand Down

0 comments on commit 1eda7e3

Please sign in to comment.