-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
First, thanks for the amazing work on this bundle!
I'm using version 0.30.2 of the bundle.
There are some issues when displaying the Data Tables section in the Profiler.
I'm using a ActionsColumnType and I get this error:
Neither the property "name" nor one of the methods "name()", "getname()"/"isname()"/"hasname()" or "__call()" exist and have public access in class "Symfony\Component\VarDumper\Cloner\Data" in @KreyuDataTable/data_collector/template.html.twig at line 134.
It seems, when using ActionsColumnType, that the action variable has no name.
action.type_class is not defined either.
Here is how I defined the actions:
->addColumn('actions', ActionsColumnType::class, [
'actions' => [
'edit' => [
'type' => ButtonActionType::class,
'type_options' => [
'href' => fn(Owner $owner) => $this->urlGenerator->generate('app_owner_edit', ['id' => $owner->getId()]),
'label' => 'Edit',
'variant' => 'primary'
],
],
'delete' => [
'type' => FormActionType::class,
'type_options' => [
'action' => fn(Owner $owner) => $this->urlGenerator->generate('app_owner_delete', ['id' => $owner->getId()]),
'confirmation' => true,
'label' => 'Delete',
'method' => 'POST',
'variant' => 'destructive',
],
],
],
'label' => 'Actions',
'priority' => 0,
'value_attr' => [
'class' => 'text-nowrap small',
],
])davidnectarestudio
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working