Skip to content

Commit

Permalink
[GH-8458] Properly deprecate ConvertDoctrine1Schema (#8517)
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei authored Mar 2, 2021
1 parent b3ed525 commit 3902a4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Doctrine/ORM/Tools/ConvertDoctrine1Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
namespace Doctrine\ORM\Tools;

use Doctrine\DBAL\Types\Type;
use Doctrine\Deprecations\Deprecation;
use Doctrine\Inflector\InflectorFactory;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Symfony\Component\Yaml\Yaml;
Expand Down Expand Up @@ -64,6 +65,13 @@ class ConvertDoctrine1Schema
public function __construct($from)
{
$this->from = (array) $from;

Deprecation::trigger(
'doctrine/orm',
'https://github.com/doctrine/orm/issues/8458',
'%s is deprecated with no replacement',
self::class
);
}

/**
Expand Down

0 comments on commit 3902a4e

Please sign in to comment.