| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | protected function setupEntityManager(): void |
||
| 21 | { |
||
| 22 | $paths = []; |
||
| 23 | $isDevMode = false; |
||
| 24 | |||
| 25 | // the connection configuration |
||
| 26 | $dbParams = [ |
||
| 27 | 'driver' => 'pdo_sqlite', |
||
| 28 | 'memory' => true, |
||
| 29 | ]; |
||
| 30 | |||
| 31 | $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode); |
||
| 32 | $this->em = EntityManager::create($dbParams, $config); |
||
| 33 | |||
| 34 | $schemaTool = new SchemaTool($this->em); |
||
| 35 | $schemaTool->createSchema([ |
||
| 36 | $this->em->getClassMetadata(ORMEntity::class), |
||
| 37 | ]); |
||
| 58 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.