Skip to content

Commit

Permalink
version compare
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Oct 12, 2016
1 parent d72a9d3 commit b724331
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/RelationalBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Doctrine\ORM\Mapping\UnderscoreNamingStrategy;
use Doctrine\ORM\Repository\RepositoryFactory;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
use Doctrine\ORM\Version;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\HelperSet;

Expand Down Expand Up @@ -478,8 +479,12 @@ public function getConsoleCommands()
new \Doctrine\ORM\Tools\Console\Command\RunDqlCommand(),
new \Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand(),
new \Doctrine\ORM\Tools\Console\Command\InfoCommand(),
new \Doctrine\ORM\Tools\Console\Command\MappingDescribeCommand(),
];

if (Version::compare('2.5') <= 0) {
$commands[] = new \Doctrine\ORM\Tools\Console\Command\MappingDescribeCommand();
}

$commandPrefix = (string) $this->getName();

if ($commandPrefix !== '') {
Expand Down

0 comments on commit b724331

Please sign in to comment.