Questions tagged [gedmo-loggable]
21 questions
5
votes
1 answer
Gedmo loggable working but not storing username
I have got logging working on my entity so that when I make a change to a product field with the @Gedmo\Versioned annotation a new version is created. However the only problem is that the username field remains NULL. There is an authenticated user…

diggersworld
- 12,770
- 24
- 84
- 119
4
votes
3 answers
Passing name of security user to listener in services.yml in Symfony2
I am using Gedmo Loggable to keep track of changes that users make to entities. The username is not stored by default for each change, but it is necessary to provide it to the listener.
An example of this, is found in the documentation of Loggable:
…

Paul Maclean
- 631
- 4
- 14
- 31
3
votes
0 answers
Initial command to register existing records in loggable fields
I'm using Gedmo-Loggable to monitor user activity in loggable entities. It's working just fine but I realized that current values already existing in my database will be lost, when they are overwritten and gedmo loggable save only new value entered…

Szaman86
- 161
- 2
- 9
2
votes
0 answers
Doctrine Loggable Integrity constraint violation: 1048 Column 'object_id' cannot be null while persisting new entity
Issue with doctrine gedmo loggable extension amd stof doctrine extension
config/doctrine/Tag.orm.xml

Sumeet
- 1,683
- 20
- 27
2
votes
0 answers
Sylius disable Doctrine logging to ext_log_entries
We are working on a version of Sylius 0.9 in which we made several huge changes, overriding a lot of core logics.
Doing so we broke a bit the wired in logging or history functionality.
Lurking the code it looks like that this functionality is…

Zerho
- 1,440
- 4
- 19
- 39
2
votes
0 answers
Symfony2 Gedmo Loggable versioned and slug conflict?
I've a little problem with Gedmo extension, when I use Slug and Versioned in "name" field.
/**
* @MongoDB\string
* @Gedmo\Translatable
* @Gedmo\Versioned
*/
protected $title;
/**
* @Gedmo\Slug(fields={"title"})
* @Gedmo\Versioned
*…

B. Jason
- 21
- 2
1
vote
1 answer
Gedmo Loggable extension: add a new column to entries
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…

petekaner
- 8,071
- 5
- 29
- 52
1
vote
1 answer
loggable doesn't log anything to database
In my Symfony project we want to use the Gedmo/Loggable plugin.
Unfortunately I didn't find an documantation explicit for this plugin.
Just for the complete…

kristof
- 129
- 1
- 14
1
vote
1 answer
Doctrine Extension Loggable - log old values instead of new ones of field
I implemented the Loggable extensions of Doctrine. But now I have the following case. I want to track "status" of object. But the objects already exist in my db with corresponding status for each of them. When I update one, in the log_entry is…

Ivo
- 353
- 2
- 13
1
vote
1 answer
how to populate data in 'closure' table if we have existing hierachy using parent_id in Gedmo doctrine tree extension?
I have existing category hierarchy with parent_id column. I have configured Gedmo Tree extension and update schema. I can see 'level' column is added to category table and category_closure table is created.
How do I populate the data in…

vishal
- 3,993
- 14
- 59
- 102
0
votes
1 answer
Symfony 6 + Gedmo Loggable: Unable to use without MongoDB (use another db)
I want to use revisions on my entities. I am using Symfony 6 with Doctrine ORM. Doctrine is configured to use MSSQL and works just fine with other entities not using Gedmo - it is tested and it works.
But when I try to add Gedmo Loggable, like…

Ari Veiene
- 23
- 2
0
votes
0 answers
Symfony postupdate eventlistener filter by updated field
I have a postupdate listener to register the updated on a ManyToMany field , because that is not possible with Gedmo\Loggable but this listener trigger on every update, and I'm not sure if its possible to make that listener only works when the…

adf_25
- 3
- 3
0
votes
0 answers
Loggable doesn't write in the table
I want to use loogable extension, but it doesn't write anything in ext_log_enties table.
I'm using symfony 5.4 and Api-platform 2.6.8 in my project.
My configuration:
doctrine.yaml
doctrine:
dbal:
...
orm:
…

Joachim DARMALINGON
- 23
- 3
0
votes
0 answers
gedmo loggable doesn't save in database
I want to register logs when i update my entity with gdmo-loggable, the table exists but no one register.
Here's my current code
# config.yaml
# Doctrine Configuration
doctrine:
orm:
auto_generate_proxy_classes: "%kernel.debug%"
…

countrystores
- 1
- 2
0
votes
1 answer
Gedmo Loggable doesn't log in his table "ext_log_entries"
I'm trying to use Gedmo\Loggable to log any changes for an entity.
This is my implementation :
/**
* @Gedmo\Loggable
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
*/
class MyClass
{
On the field
/**
* @Gedmo\Versioned
…

Thibault Dumas
- 1,060
- 2
- 10
- 21