How to call Entity Manager in a constructor?

前端 未结 6 1570
终归单人心
终归单人心 2020-12-06 05:52

I\'ve been trying to call Entity Manager in a constructor:

function __construct()
{
    $this->getDoctrine()->getEntityManager();
    ...
         


        
6条回答
提交回复
热议问题