Skip to content

Commit

Permalink
Don't pluralize table name when baking seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-mcfly authored Feb 20, 2024
1 parent 61e0ba0 commit 97ed49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/BakeSeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function templateData(Arguments $arguments): array
$namespace = $this->_pluginNamespace($this->plugin);
}

$table = Inflector::tableize((string)$arguments->getArgumentAt(0));
$table = Inflector::underscore((string)$arguments->getArgumentAt(0));
if ($arguments->hasOption('table')) {
/** @var string $table */
$table = $arguments->getOption('table');
Expand Down

0 comments on commit 97ed49b

Please sign in to comment.