Skip to content

Commit

Permalink
Remove basic Model class from output to reduce noise
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Sep 30, 2023
1 parent 5833547 commit c12af5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Console/ListRecordsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace ICanBoogie\Binding\ActiveRecord\Console;

use ICanBoogie\ActiveRecord\Config;
use ICanBoogie\ActiveRecord\Model;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
Expand All @@ -26,7 +27,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
foreach ($this->config->models as $attributes) {
$rows[] = [
$attributes->activerecord_class,
$attributes->model_class,
$attributes->model_class === Model::class ? "" : $attributes->model_class,
$attributes->connection,
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Test\ICanBoogie\Binding\ActiveRecord\Acme\Node;
use Test\ICanBoogie\Binding\ActiveRecord\Acme\NodeModel;

final class ListModelsCommandTest extends CommandTestCase
final class ListRecordsCommandTest extends CommandTestCase
{
public static function provideExecute(): array
{
Expand Down

0 comments on commit c12af5f

Please sign in to comment.