我用Doctrine在我的表單中創建DoctrineModule \ Form \ Element \ ObjectSelect。但是向我展示這些錯誤:「沒有設置對象管理器」。我基於Doctrine Module的指導。我有時間搜索,但無法找到什麼是錯的。代碼: 形式: <?php
//.....
use DoctrineModule\Persistence\ObjectManagerAwar
我得到這個錯誤: Catchable Fatal Error: Object of class Symfony\Component\HttpFoundation\ParameterBag could not be converted to string 我使用的Symfony 3和學說查詢生成器 $qb = $this->getEntityManager()->createQueryBuilder