Gedmo Loggable extension: add a new column to entries

1.7k Views Asked by At

I have an application with products and attributes. In the backoffice I would like to track the changes on the attribute values. I started using loggable extension by gedmo and it works fine but now I'd like to add a new column in the log entry table for the product id. I know how to create a custom entity for the logs by adding the annotation in the attribute table:

@Gedmo\Loggable(logEntryClass="App\Entity\LogEntry")

But I don't know if is somehow possible to extend the Gedmo listener to also log the product_id in the log entry table

1

There are 1 best solutions below

0
On