Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blameable on update seems to be not working with persist and flush in Synfony 3.x #387

Open
ranjzith opened this issue Dec 17, 2018 · 1 comment

Comments

@ranjzith
Copy link

Hi All,

I am working on a PHP project with symfony 3.4 and doctrine 2.6, we have a blameable field on an entity, when I first create the entity the blameable field is getting set properly but on update the value is set to empty/null in database. This use to work before we had upgraded symfony (from 2.x to 3.x) and other dependent libraries to higher versions. Could some one shed some light on this,

This is sample from my orm file

manyToOne:
    LastUpdateUser:
        targetEntity: My\UserEntity
        gedmo:
            blameable:
                on: update

On update scenario,

$entityManager->persist($entity);
$entityManager->flush();

after executing the above, the last update user value is set to empty/null in database. Any lead on this would be a great help.

Thanks.

@dracken
Copy link

dracken commented May 9, 2019

Having the same issue, seems to be related to #371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants