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
This is not so easy to fix. Which EntityManager should be sent to the repository/constructor? I guess the one which is being created, but not so sure how we can provide that when the constructor is requesting a repository.
Relevant code is EntityManagerFactory::registerSubscribers.
I know that I'm showing examples from symfony project.
I'm trying to push lazy services to Laravel (laravel/ideas#1436), but don't have results
eigan
changed the title
[BUG] EventSubscriber has memory leaks
[BUG] Circular dependency issue when using EntityMananger in constructor of subscribers
Jan 30, 2020
Package version, Laravel version
Package version - latest (1.5.4)
Laravel - latest (6.x)
Expected behaviour
I can resolve depdendency as ctor injection
Actual behaviour
Steps to reproduce the behaviour
just inject EntityManager/SomeRepository into EventSubscriber
The text was updated successfully, but these errors were encountered: