2017 © Pedro Peláez
 

library doctrine-events

Add Doctrine events

image

steevanb/doctrine-events

Add Doctrine events

  • Wednesday, June 28, 2017
  • by kujaff
  • Repository
  • 1 Watchers
  • 0 Stars
  • 880 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 7 % Grown

The README.md

version doctrine php Lines Total Downloads SensionLabsInsight Scrutinizer, (*1)

doctrine-events

Add some events to Doctrine 2.5, (*2)

Fix a Doctrine UnitOfwork bug with extraUpdates, who are not removed when you add and remove your entity before calling flush(), (*3)

Changelog, (*4)

onCreateEntityOverrideLocalValues

Dispatched when UnitOfWork try to know if current entity must be filled with values retrieved from query, or if this entity is already known and fields are already defined., (*5)

onCreateEntityDefineFieldValues

Dispactched when UnitOfWork define entity field values, (*6)

onNewEntityInstance

Dispactched when UnitOfWork create new instance of your Entity, (*7)

Installation

Add it to your composer.json :, (*8)

{
    "require": {
        "steevanb/doctrine-events": "^1.2",
    }
}

You have to use steevanb\DoctrineEvents\Doctrine\ORM\EntityManager instead of Doctrine\ORM\EntityManager, (*9)

Internally, it will use steevanb\DoctrineEvents\Doctrine\ORM\UnitOfWork instead of Doctrine\ORM\UnitOfWork, (*10)

If you are on Symfony2 or Symfony3 project, you can add it to your config :, (*11)

# app/config.yml
parameters:
    doctrine.orm.entity_manager.class: steevanb\DoctrineEvents\Doctrine\ORM\EntityManager

Some lib who use it

https://github.com/steevanb/doctrine-entity-merger : add MERGE_ENTITY hint to define fields loaded with multiple queries, with PARTIAL, instead of returning first hydrated entity, (*12)

The Versions

28/06 2017

dev-master

9999999-dev

Add Doctrine events

  Sources   Download

MIT

The Requires

 

15/02 2017

1.2.0

1.2.0.0

Add Doctrine events

  Sources   Download

MIT

The Requires

 

17/01 2017

1.1.1

1.1.1.0

Add Doctrine events

  Sources   Download

MIT

The Requires

 

16/01 2017

1.1.0

1.1.0.0

Add Doctrine events

  Sources   Download

MIT

The Requires

 

14/12 2016

1.0.1

1.0.1.0

Add Doctrine events

  Sources   Download

MIT

The Requires

 

14/12 2016

1.0.0

1.0.0.0

Add Doctrine events

  Sources   Download

MIT

The Requires