Closed jorismulliez closed 4 years ago
This is actually a Symfony/Form thing. You will want to set the label
on the InvoicesFilterType
to false
, by adding a configureOptions
method:
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'label' => false,
]);
}
Thanks a lot for your quick response !
It's all right now !
And thanks for this bundle :)
Hello,
I'm using this bundle for filtering a list of entity (subscription). All works well, except for a special case with CollectionAdapterFilterType. I have invoice entity related to subscriptions and I want to be able to filter by fields under the invoice entity. I followed this documentation : https://github.com/lexik/LexikFormFilterBundle/blob/master/Resources/doc/working-with-the-bundle.md#iii-working-with-entity-associations-and-embeddeding-filters And it is ok I can filter as I want.
But... the form render an unwanted "0" label between my "Invoices" (Factures in french) and the fields of the invoice entity.
An image will be more explicit :
I don't know if the problem come from my form configuration, from my templates/theme or from my use of this bundle. If you could guide me on the path to explore....
Here are some extract of the code : AdminTrainingformListType.php:
InvoicesFilterType.php:
I'm available for any informations I can give you to better understand the problem!
Thanks for your help,