new NotBlank(), | new NotBlank(), | ||||
], | ], | ||||
] | ] | ||||
) | |||||
->add( | |||||
); | |||||
if ($options['thematic'] == true) { | |||||
$builder->add( | |||||
'thematic', | 'thematic', | ||||
EntityType::class, | EntityType::class, | ||||
[ | [ | ||||
] | ] | ||||
] | ] | ||||
); | ); | ||||
} | |||||
if ($options['context'] == "backend") { | if ($options['context'] == "backend") { | ||||
$builder->add( | $builder->add( | ||||
'subthematic', | 'subthematic', | ||||
$resolver->setDefaults( | $resolver->setDefaults( | ||||
[ | [ | ||||
'data_class' => $this->em->getEntityName(DreamInterface::class), | 'data_class' => $this->em->getEntityName(DreamInterface::class), | ||||
'context' => 'backend' | |||||
'context' => 'backend', | |||||
'thematic' => true | |||||
] | ] | ||||
); | ); | ||||
} | } |
new NotBlank(), | new NotBlank(), | ||||
], | ], | ||||
] | ] | ||||
) | |||||
->add( | |||||
); | |||||
if ($options['thematic'] == true) { | |||||
$builder->add( | |||||
'thematic', | 'thematic', | ||||
EntityType::class, | EntityType::class, | ||||
[ | [ | ||||
] | ] | ||||
] | ] | ||||
); | ); | ||||
} | |||||
if ($options['context'] == "backend") { | if ($options['context'] == "backend") { | ||||
$builder->add( | $builder->add( | ||||
'subthematic', | 'subthematic', | ||||
$resolver->setDefaults( | $resolver->setDefaults( | ||||
[ | [ | ||||
'data_class' => $this->em->getEntityName(ProjectBoostInterface::class), | 'data_class' => $this->em->getEntityName(ProjectBoostInterface::class), | ||||
'context' => 'backend' | |||||
'context' => 'backend', | |||||
'thematic' => true, | |||||
] | ] | ||||
); | ); | ||||
} | } |
new NotBlank(), | new NotBlank(), | ||||
], | ], | ||||
] | ] | ||||
) | |||||
->add( | |||||
); | |||||
if ($options['thematic'] == true) { | |||||
$builder->add( | |||||
'thematic', | 'thematic', | ||||
EntityType::class, | EntityType::class, | ||||
[ | [ | ||||
] | ] | ||||
] | ] | ||||
); | ); | ||||
} | |||||
if ($options['context'] == "backend") { | if ($options['context'] == "backend") { | ||||
$builder->add( | $builder->add( | ||||
'subthematic', | 'subthematic', | ||||
$resolver->setDefaults( | $resolver->setDefaults( | ||||
[ | [ | ||||
'data_class' => $this->em->getEntityName(ProjectInspiringInterface::class), | 'data_class' => $this->em->getEntityName(ProjectInspiringInterface::class), | ||||
'context' => 'backend' | |||||
'context' => 'backend', | |||||
'thematic' => true | |||||
] | ] | ||||
); | ); | ||||
} | } |
new NotBlank(), | new NotBlank(), | ||||
], | ], | ||||
] | ] | ||||
) | |||||
->add( | |||||
); | |||||
if ($options['thematic'] == true) { | |||||
$builder->add( | |||||
'thematic', | 'thematic', | ||||
EntityType::class, | EntityType::class, | ||||
[ | [ | ||||
] | ] | ||||
] | ] | ||||
); | ); | ||||
} | |||||
if ($options['context'] == "backend") { | if ($options['context'] == "backend") { | ||||
$builder->add( | $builder->add( | ||||
'subthematic', | 'subthematic', | ||||
$resolver->setDefaults( | $resolver->setDefaults( | ||||
[ | [ | ||||
'data_class' => $this->em->getEntityName(RevoltInterface::class), | 'data_class' => $this->em->getEntityName(RevoltInterface::class), | ||||
'context' => 'backend' | |||||
'context' => 'backend', | |||||
'thematic' => true | |||||
] | ] | ||||
); | ); | ||||
} | } |