@@ -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 | |||
] | |||
); | |||
} |
@@ -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, | |||
] | |||
); | |||
} |
@@ -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 | |||
] | |||
); | |||
} |
@@ -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 | |||
] | |||
); | |||
} |