adt / doctrine-loggable
Logging of changes in Doctrine entities
Installs: 22 030
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 3
Open Issues: 0
pkg:composer/adt/doctrine-loggable
Requires
- php: ^8.0|^8.1|^8.2
- doctrine/common: ^3.5
- doctrine/orm: ^3.0
- nette/di: ^3.0
- nette/security: ^3.2
- nette/utils: ^2.5|^3.0|^4.0
- dev-master
- v3.0.2
- v3.0.1
- v3.0
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5
- v1.4.1
- v1.4
- v1.3.2
- v1.3.1
- v1.3
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2
- v1.1.1
- v1.1
- v1.0.1
- v1.0
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- dev-f-postgresql
- dev-old-php-version
- dev-test
This package is auto-updated.
Last update: 2025-11-17 19:03:28 UTC
README
Installation
-
Install via composer:
composer require adt/doctrine-loggable
-
Register this extension in your config.neon:
extensions: - ADT\DoctrineLoggable\DI\LoggableExtension
-
Do database migrations
-
Add annotation to entities you wish to log
<?php use Doctrine\ORM\Mapping as ORM; use ADT\DoctrineLoggable\Attributes as ADA; /** * @ORM\Entity * @ADA\LoggableEntity */ class User { /** * @ORM\Column(type="string", nullable=true) * @ADA\LoggableProperty(label="entity.user.firstname") */ protected $firstname; /** * @ORM\ManyToMany(targetEntity="Role", inversedBy="users") * @ADA\LoggableProperty(logEntity=false, label="entity.user.roles") */ protected $roles; } /** * @ORM\Entity * @ADA\LoggableIdentification(fields={"name"}) */ class Role { /** * @ORM\Column(type="string") */ protected $name; /** * @ORM\ManyToMany(targetEntity="User", mappedBy="roles") */ protected $users; }