1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#1200 - removing console deprecation errors by using the new Symfony\Component\Console\Helper\Table instead of the deprecated TableHelper

This commit is contained in:
Marco Pivetta 2014-12-04 13:40:22 +01:00
parent d3b1bf571b
commit 9d2c0481ae

View File

@ -22,7 +22,7 @@ namespace Doctrine\ORM\Tools\Console\Command;
use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@ -79,7 +79,7 @@ EOT
*/
private function displayEntity($entityName, EntityManagerInterface $entityManager, OutputInterface $output)
{
$table = new TableHelper();
$table = new Table($output);
$table->setHeaders(array('Field', 'Value'));
@ -126,7 +126,7 @@ EOT
)
);
$table->render($output);
$table->render();
}
/**