Charly 2 лет назад
Родитель
Сommit
6a9912797d
4 измененных файлов: 25 добавлений и 13 удалений
  1. +6
    -3
      Form/Dream/DreamType.php
  2. +6
    -4
      Form/ProjectBoost/ProjectBoostType.php
  3. +7
    -3
      Form/ProjectInspiring/ProjectInspiringType.php
  4. +6
    -3
      Form/Revolt/RevoltType.php

+ 6
- 3
Form/Dream/DreamType.php Просмотреть файл

@@ -40,8 +40,9 @@ class DreamType extends AbstractType
new NotBlank(),
],
]
)
->add(
);
if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,6 +57,7 @@ class DreamType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -83,7 +85,8 @@ class DreamType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(DreamInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true
]
);
}

+ 6
- 4
Form/ProjectBoost/ProjectBoostType.php Просмотреть файл

@@ -40,8 +40,9 @@ class ProjectBoostType extends AbstractType
new NotBlank(),
],
]
)
->add(
);
if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,7 +57,7 @@ class ProjectBoostType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -84,7 +85,8 @@ class ProjectBoostType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(ProjectBoostInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true,
]
);
}

+ 7
- 3
Form/ProjectInspiring/ProjectInspiringType.php Просмотреть файл

@@ -40,8 +40,10 @@ class ProjectInspiringType extends AbstractType
new NotBlank(),
],
]
)
->add(
);

if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,6 +58,7 @@ class ProjectInspiringType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -83,7 +86,8 @@ class ProjectInspiringType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(ProjectInspiringInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true
]
);
}

+ 6
- 3
Form/Revolt/RevoltType.php Просмотреть файл

@@ -40,8 +40,9 @@ class RevoltType extends AbstractType
new NotBlank(),
],
]
)
->add(
);
if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,6 +57,7 @@ class RevoltType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -84,7 +86,8 @@ class RevoltType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(RevoltInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true
]
);
}

Загрузка…
Отмена
Сохранить