From eabb7f84e926e0e3138324dfcc52af7d37aadf86 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Tue, 30 Nov 2021 19:35:00 +0100 Subject: [PATCH] Add deprecation hints to orm:convert-mapping command --- .../ORM/Tools/Console/Command/ConvertMappingCommand.php | 3 +++ psalm-baseline.xml | 5 +---- psalm.xml | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php index 1067647e97f..c6b4a1aba05 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php @@ -31,6 +31,8 @@ /** * Command to convert your mapping information between the various formats. * + * @deprecated 2.7 This class is being removed from the ORM and won't have any replacement + * * @link www.doctrine-project.org */ class ConvertMappingCommand extends AbstractEntityManagerCommand @@ -86,6 +88,7 @@ protected function configure() protected function execute(InputInterface $input, OutputInterface $output) { $ui = new SymfonyStyle($input, $output); + $ui->warning('Command ' . $this->getName() . ' is deprecated and will be removed in Doctrine ORM 3.0.'); $em = $this->getEntityManager($input); diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 56507a5c067..b9f708dc35a 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -3438,11 +3438,8 @@ - + Versions::getVersion('doctrine/orm') - new Command\ConvertDoctrine1SchemaCommand() - new Command\GenerateEntitiesCommand($entityManagerProvider) - new Command\GenerateRepositoriesCommand($entityManagerProvider) diff --git a/psalm.xml b/psalm.xml index becb648d8c2..3835c15c57b 100644 --- a/psalm.xml +++ b/psalm.xml @@ -24,7 +24,11 @@ + + + +