You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@petrparolek I found a workaround, but it is not very nice (and possibly breaks if you use entityManagerHelper and depend on your EntityManagerDecorator in custom commands).
Create a new EntityManagerDecorator (or add getWrapped method to it):
class MyEntityManagerDecorator extends Nettrine\ORM\EntityManagerDecorator
{
public function getWrapped(): Doctrine\ORM\EntityManagerInterface
{
return $this->wrapped;
}
}
Use it in config and use wrapped EntityManager in entityManagerHelper:
There was a BC-break introduced in doctrine/orm 2.8.2 - AbstractCommand requires EntityManager: doctrine/orm#8488.
When running db-related commands, following error is thrown:
It is already fixed (doctrine/orm#8493), so I assume 2.8.3 will be ok.
Maybe it would be worth it to add conflict with 2.8.2 into composer.json?
The text was updated successfully, but these errors were encountered: