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

https://github.com/darkwebdesign/doctrine-enhanced-events

Doctrine Enhanced Events [READ-ONLY] Subtree split of https://github.com/darkwebdesign/doctrine-enhancement-pack
https://github.com/darkwebdesign/doctrine-enhanced-events

doctrine events php

Last synced: about 1 month ago
JSON representation

Doctrine Enhanced Events [READ-ONLY] Subtree split of https://github.com/darkwebdesign/doctrine-enhancement-pack

Awesome Lists containing this project

README

          

# Doctrine Enhanced Events

[![Latest Stable Version](https://poser.pugx.org/darkwebdesign/doctrine-enhanced-events/v/stable?format=flat)](https://packagist.org/packages/darkwebdesign/doctrine-enhanced-events)
[![Total Downloads](https://poser.pugx.org/darkwebdesign/doctrine-enhanced-events/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/doctrine-enhanced-events)
[![License](https://poser.pugx.org/darkwebdesign/doctrine-enhanced-events/license?format=flat)](https://packagist.org/packages/darkwebdesign/doctrine-enhanced-events)

[![Build Status](https://travis-ci.com/darkwebdesign/doctrine-enhanced-events.svg?branch=2.7)](https://travis-ci.com/darkwebdesign/doctrine-enhanced-events?branch=2.7)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/doctrine-enhanced-events/branch/2.7/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/doctrine-enhanced-events)
[![PHP Version](https://img.shields.io/badge/php-7.1%2B-777BB3.svg)](https://php.net/)
[![Doctrine Version](https://img.shields.io/badge/doctrine-2.7-2E6BC8.svg)](http://www.doctrine-project.org/)

Doctrine Enhanced Events offers enhanced versions of the original Doctrine (lifecycle) events.

Learn more about it in its [documentation](https://github.com/darkwebdesign/doctrine-enhancement-pack/blob/2.7/doc/reference/events.md).

## Features

* Access to the original entity in the `pre-update` and `post-update` lifecycle events.
* Access to the created, updated (also their original entities) and deleted entities in the `on-flush` and `post-flush` events.
* Modifying the actual entities (instead of via "change set" array) in the `on-flush` event and `pre-update` lifecycle event.
* Automatic recomputing of the "change set" after modifying the entities in the `on-flush` event.

## Installing via Composer

```bash
composer require darkwebdesign/doctrine-enhanced-events
```

```bash
composer install
```

## License

Doctrine Enhanced Events is licensed under the MIT License - see the `LICENSE` file for details.