Kdyby/Events

Problem with onClear event

Closed this issue · 5 comments

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

i got same problem

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: doctrine/orm#1515

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

#110 this will fix a problem