Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function buildSelectQueryHydratorByClass($entityClass) |
||
37 | { |
||
38 | $em = $this->registry->getManagerForClass($entityClass); |
||
39 | if (!$em instanceof EntityManager) { |
||
40 | throw new \LogicException( |
||
41 | 'EntityManager must be instance of \Doctrine\ORM\EntityManager' |
||
42 | ); |
||
43 | } |
||
44 | |||
45 | return new SelectQueryHydrator( |
||
46 | $em->getRepository($entityClass), |
||
47 | $this->config->getSchemaByEntityClass($entityClass), |
||
48 | $this->config->getEntityConfig($entityClass) |
||
49 | ); |
||
52 | } |