Answer the question
In order to leave comments, you need to log in
[ symfony 2 ] Getting container in entities
Hello.
How can I get a container from an entity in symfony 2 ? Those. In the controller, this is easy to do:
$this->container->get('Doctrine');
How can I do the same in Entity?
Answer the question
In order to leave comments, you need to log in
Make entity constructor
What problem are you trying to solveI have multiple entities:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question