Heya, The object manager is usually given by the event being fired, so you don't need to inject it.
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Thu, Jun 8, 2017 at 1:12 PM, Kai Szymanski <[email protected]> wrote: > Hi, > > sound funny, i know :) > > But: I use the Zend Framework 3 with Doctrine and have a Service that > needs the Entitymanager ($containber->get('doctrine...."). Now i wan't to > use the Service in a EventSubscruber. > > problem: I get a "max nested function" error because it seems that every > ->get('doctrinemanager') initialize the subscribers, the subscribers > initialize the Service, the service....and so on. > > Exists there a solution ? > > Thanks :) > > Best regards, > Kai. > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
