Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caferrari/cafdoctrineoperationslogger
ZF2 Module that logs doctrine operations (CRUD)
https://github.com/caferrari/cafdoctrineoperationslogger
Last synced: about 2 months ago
JSON representation
ZF2 Module that logs doctrine operations (CRUD)
- Host: GitHub
- URL: https://github.com/caferrari/cafdoctrineoperationslogger
- Owner: caferrari
- License: mit
- Created: 2014-05-02T12:03:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-16T14:48:03.000Z (over 10 years ago)
- Last Synced: 2024-10-28T05:39:11.157Z (3 months ago)
- Language: PHP
- Size: 148 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Doctrine Entity Logger
This module have the responsability to log Doctrine Operations on Entities like Insert, Update and Delete
To enable the module, just copy the dist configuration to your config/autoload directory and edit the configurations as you like
```bash
cp vendor/caferrari/caf-doctrine-logger/config/module.config.php.dist config/autoload/doctrine_logger.global.php
```After that, add the module to your 'config/application.config.php'
```php
array(
// ...
'CafDoctrineLogger'
)
```To enable the logging on your entities, just implement the interface `CafDoctrineLogger\Loggable`:
```php
$this->id,
'name' => $this->name
];
}
}
```Make sure that the php has permissions to write in the query log directory.