Kdyby / Events

Events for Nette Framework
https://packagist.org/packages/kdyby/events
Other
58 stars 60 forks source link

Problem with onClear event #109

Closed martinknor closed 6 years ago

martinknor commented 7 years ago

A function \Doctrine\ORM\Internal\Hydration\AbstractHydrator::cleanup call ->removeEventListener([Events::onClear], $this);, but this failed at \Kdyby\Events\EventManager:218

PHP Notice: Undefined index: Doctrine\ORM\Event::onClear in ...\vendor\kdyby\events\src\Events\EventManager.php:218

michal-loksik commented 7 years ago

i got same problem

aleswita commented 7 years ago

I have same issue after update some doctrine libraries..

My proactional solution:

$ composer require doctrine/common:~2.7.0
$ composer require doctrine/dbal:~2.5.0
$ composer require doctrine/orm:2.5.6

Look at this PR: https://github.com/doctrine/doctrine2/pull/1515

hubipe commented 7 years ago

Same problem here, problem caused in doctrine/orm v2.5.7. Version 2.5.6 works fine.

JanGalek commented 7 years ago

https://github.com/Kdyby/Events/pull/110 this will fix a problem

petrparolek commented 7 years ago

fixed by https://github.com/doctrine/doctrine2/releases/tag/v2.5.9