EasyAuditBundle
EasyAuditBundle copied to clipboard
AuditLog::setUser()- proper way use User object instead of property
No, That will not be a proper way for various reasons.
- AuditLog Should not have foreignKey reference with any entity
- AuditLog is not only for use with ORM
- The user property is configurable through a configuration option to allow user the choice to store username/fullName/id whichever suits the needs
Thanks