From 00632244bc6e6d35a4172ed4685be5cf534e313c Mon Sep 17 00:00:00 2001 From: Robert Currall Date: Tue, 2 Mar 2021 17:06:33 -0500 Subject: [PATCH] docs: address issue with incorrect code snippet The import for `ExistingConfiguration` is fixed, and the `Configuration` does not provide a *setName* method, so it throws an error when running the script. --- docs/en/reference/custom-configuration.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/en/reference/custom-configuration.rst b/docs/en/reference/custom-configuration.rst index f3be9a8e3..c173eea6b 100644 --- a/docs/en/reference/custom-configuration.rst +++ b/docs/en/reference/custom-configuration.rst @@ -16,7 +16,7 @@ Once you have your custom integration setup, you can modify it to look like the use Doctrine\DBAL\DriverManager; use Doctrine\Migrations\Configuration\Configuration; use Doctrine\Migrations\Configuration\Connection\ExistingConnection; - use Doctrine\Migrations\Configuration\Configuration\ExistingConfiguration; + use Doctrine\Migrations\Configuration\Migration\ExistingConfiguration; use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration; use Doctrine\Migrations\Tools\Console\Command; @@ -34,7 +34,6 @@ Once you have your custom integration setup, you can modify it to look like the $configuration = new Configuration($connection); - $configuration->setName('My Project Migrations'); $configuration->addMigrationsDirectory('MyProject\Migrations', '/data/doctrine/migrations-docs-example/lib/MyProject/Migrations'); $configuration->setAllOrNothing(true); $configuration->setCheckDatabasePlatform(false);