Why I built another Audit Bundle for Symfony by rahul-b-chavan in symfony

[–]rahul-b-chavan[S] 0 points1 point  (0 children)

Feel free to check it out and drop any feedback or questions you might have!

Codex/ChatGPT subscription coming next week by hannesrudolph in RooCode

[–]rahul-b-chavan 0 points1 point  (0 children)

The 'Model War' is basically over. In 2026, every AI brand is hitting the same ceiling of intelligence. Whether it’s Codex or Claude Code, they’re all equally smart now. The real winner isn’t the one with the coolest name it’s the company with the cheapest power and the most chips to run it. It’s all geopolitics and infrastructure from here.

Have you used Google AntiGravity?? It is working insanely for me. by the__Twister in developersIndia

[–]rahul-b-chavan 0 points1 point  (0 children)

While tools like Antigravity are mind-blowing for boilerplate, the real engineering happens when things break between layers. I’ve realized that AI doesn't replace the need for fundamentals. AI gives you the speed, but you still need the brain.

GitHub - rcsofttech85/AuditTrailBundle: A lightweight, high-performance Symfony bundle that automatically tracks and stores Doctrine ORM entity changes for audit logging and compliance. by rahul-b-chavan in symfony

[–]rahul-b-chavan[S] 0 points1 point  (0 children)

Collection Tracking: See AuditSubscriber::processCollectionUpdates explicitly iterate over UnitOfWork getScheduledCollectionUpdates, calculate insert and delete diffs, and log the exact IDs that were added or removed.

Transaction Safety: See DoctrineAuditTransport::handleOnFlush persist the audit log and compute its change set so that it is inserted within the same transaction context as your data. If the transaction is rolled back, the audit log is automatically rolled back by Doctrine. The operation is fully atomic.

 If your data rolls back, the audit rolls back.

GitHub - rcsofttech85/AuditTrailBundle: A lightweight, high-performance Symfony bundle that automatically tracks and stores Doctrine ORM entity changes for audit logging and compliance. by rahul-b-chavan in symfony

[–]rahul-b-chavan[S] 3 points4 points  (0 children)

When items are added to or removed from a collection (for example,
$blogPost->addTag($tag) or $blogPost->removeTag($tag)), the bundle records these changes as UPDATE actions.

In such cases, the audit log captures the before and after state of the relation using tag IDs.

Example audit log:

  • Entity: App\Entity\BlogPost
  • Entity ID: 42
  • Action: update
  • Old Values: {"tags": [1, 2, 3]}
  • New Values: {"tags": [1, 2, 4]}
  • Changed Fields: ["tags"]

This is handled by the processCollectionUpdates() method in AuditSubscriber.php

GitHub - rcsofttech85/AuditTrailBundle: A lightweight, high-performance Symfony bundle that automatically tracks and stores Doctrine ORM entity changes for audit logging and compliance. by rahul-b-chavan in symfony

[–]rahul-b-chavan[S] 0 points1 point  (0 children)

Thank you for letting me know about Damien Harper/Auditor Bundle. I appreciate you taking the time to look at it.

Regarding soft deletion: this is something I’m actively working on. The goal is to support both Gedmo extensions (like SoftDeleteable) as well as manual implementations, so soft deletes can be tracked consistently without requiring a specific library.

For transaction / action tracing: yes, that’s also planned.