IntegerField::new('id', 'ID')->setSortable(true), 'userLastname' => TextareaField::new('user.lastname', 'field.default.lastname')->setSortable(true), //->setTemplatePath('@LcShop/backend/default/field/textorempty.html.twig'), 'userFirstname' => TextareaField::new('user.firstname', 'field.default.firstname')->setSortable(true), //->setTemplatePath('@LcShop/backend/default/field/textorempty.html.twig'), 'userEmail' => TextareaField::new('user.email', 'field.default.email')->setSortable(true), //->setTemplatePath('@LcShop/backend/default/field/user.html.twig'), 'total' => NumberField::new('total') ->setTemplatePath('@LcCaracole/admin/order/field/total.html.twig'), 'orderStatus' => AssociationField::new('orderStatus')->setSortable(true) ->setTemplatePath('@LcCaracole/admin/order/field/order_status.html.twig'), 'createdAt' => DateTimeField::new('createdAt')->setSortable(true), 'updatedAt' => DateTimeField::new('updatedAt')->setSortable(true), 'orderShopCreatedAt' => DateTimeField::new('orderShopCreatedAt')->setSortable(true), 'cycleNumber' => IntegerField::new('cycleNumber')->setSortable(true), 'cycleDeliveryId' => IntegerField::new('cycleDeliveryId')->setSortable(true), 'cycleId' => IntegerField::new('cycleId')->setSortable(true), 'deliveryType' => Field::new('deliveryType')->setSortable(true), //->setTemplatePath('@LcShop/backend/default/field/options_translatable.html.twig'), 'reference' => TextField::new('reference')->setSortable(true), 'complementaryOrderShops' => AssociationField::new('complementaryOrderShops')->setFormTypeOption('mapped', false) ->setTemplatePath('@LcCaracole/admin/order/field/complementary.html.twig'), 'orderPayments' => AssociationField::new('orderPayments') ->setTemplatePath('@LcCaracole/admin/order/field/order_payment.html.twig'), 'user'=> AssociationField::new('user')->setSortable(true) ]; } }