Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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.