sonata-project / EntityAuditBundle

Audit for Doctrine Entities
https://sonata-project.org
MIT License
633 stars 261 forks source link

Support Annotations #376

Closed AlexeyKosov closed 3 years ago

AlexeyKosov commented 3 years ago

Feature Request

The original package (the master branch) had support for annotations so that it was possible to configure entities like

use SimpleThings\EntityAudit\Mapping\Annotation as Audit;

/**
 * @ORM\Entity()
 * @Audit\Auditable()
 */
class Entity {
    /**
     * @ORM\Column(name="updated_at", type="datetime", nullable=true)
     * @Audit\Ignore()
     */
    protected $updatedAt;
}

Are there any plans to merge that functionality at some point?

VincentLanglet commented 3 years ago

I'm not sure any new maintainer are aware about the changes made to the previous master branch. Any improvement is welcomed if you can find the PR with this feature and if you want to make the new PR.

AlexeyKosov commented 3 years ago

These are the commits that added that feature: https://github.com/sonata-project/EntityAuditBundle/commits/legacy_master/src/SimpleThings/EntityAudit/Mapping/Annotation

drjele commented 3 years ago

@AlexeyKosov i created a different audit bundle that also uses annotations and has extra features, https://packagist.org/packages/drjele/doctrine-audit

(if my comment should not be here, let me know and i will delete it)

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.