1 | <?php |
||||||
2 | |||||||
3 | declare(strict_types=1); |
||||||
4 | |||||||
5 | use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper; |
||||||
6 | use Doctrine\Migrations\Configuration\Configuration; |
||||||
7 | use Doctrine\Migrations\Tools\Console\Helper\ConfigurationHelper; |
||||||
8 | use Doctrine\ORM\EntityManager; |
||||||
9 | use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper; |
||||||
10 | use Symfony\Component\Console\Helper\HelperSet; |
||||||
11 | |||||||
12 | $container = require 'config/container.php'; |
||||||
13 | $entityManager = $container->get(EntityManager::class); |
||||||
14 | |||||||
15 | // Configure migrations |
||||||
16 | $connection = $entityManager->getConnection(); |
||||||
17 | $configuration = new Configuration($connection); |
||||||
18 | $configuration->setMigrationsDirectory('server/Application/Migration'); |
||||||
0 ignored issues
–
show
|
|||||||
19 | $configuration->setMigrationsNamespace('Application\Migration'); |
||||||
0 ignored issues
–
show
The method
setMigrationsNamespace() does not exist on Doctrine\Migrations\Configuration\Configuration .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
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. ![]() |
|||||||
20 | $configuration->setCustomTemplate('config/migration-template.txt'); |
||||||
21 | |||||||
22 | return new HelperSet([ |
||||||
23 | 'em' => new EntityManagerHelper($entityManager), |
||||||
24 | 'db' => new ConnectionHelper($entityManager->getConnection()), |
||||||
25 | 'configuration' => new ConfigurationHelper($entityManager->getConnection(), $configuration), |
||||||
26 | ]); |
||||||
27 |
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.