-
Notifications
You must be signed in to change notification settings - Fork 40
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
Audit Log Table Not Capturing Create ID's #1445
Comments
the audit logger hooks into Doctrine's event lifecycle with an i'll attempt to leverage the |
hooking in via see this proposed solution http://stackoverflow.com/a/11054101, it seems somewhat finicky but maybe worth a try. |
^ this won't work either, at least not in the context of record insertions issued via CLI commands, since HTTP kernel events are not triggered from the command line. i'm afraid there is no satisfying solution ATM, at least I cannot see one. |
Looks like there are a couple of PRs in doctrine that might help with this, but there are like 200+ PRs in doctrine un-merged. So I'm guessing that we're not going to get this any time soon. I wonder if we could try the separate queue/listener approach in the SO entry and try and find an appropriate event that gets called form the console or else use two separate events to flush our log queue. |
just took another look at console commands and event hooks there. http://symfony.com/doc/current/cookbook/console/logging.html |
When a Course or a Session or possibly anything is created, the
audit_log.objectID
field value is captured as 0.We need to capture the actual ID of the object being created in order to perform research on who created the Course, Session, or other curricular object. Maybe there is an order of events issue which writes to the table before the newly created ID has been determined.
The text was updated successfully, but these errors were encountered: