-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I have this error when try to load fixture:
In DBALConnection.php line 48:
[ErrorException]
Notice: Undefined offset: 0
Exception trace:
at /srv/vendor/comphppuebla/dbal-fixtures/src/Database/DBALConnection.php:48
ComPHPPuebla\Fixtures\Database\DBALConnection->primaryKeyOf() at /srv/vendor/comphppuebla/dbal-fixtures/src/Fixture.php:87
ComPHPPuebla\Fixtures\Fixture->processTableRows() at /srv/vendor/comphppuebla/dbal-fixtures/src/Fixture.php:81
ComPHPPuebla\Fixtures\Fixture->load() at /srv/databases/fixtures/LoaderCommand.php:105
Fixtures\LoaderCommand->loadInclude() at /srv/databases/fixtures/LoaderCommand.php:76
Fixtures\LoaderCommand->execute() at /srv/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /srv/vendor/symfony/console/Application.php:1027
Symfony\Component\Console\Application->doRunCommand() at /srv/vendor/symfony/framework-bundle/Console/Application.php:97
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /srv/vendor/symfony/console/Application.php:273
Symfony\Component\Console\Application->doRun() at /srv/vendor/symfony/framework-bundle/Console/Application.php:83
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/vendor/symfony/console/Application.php:149
Symfony\Component\Console\Application->run() at /srv/bin/console:34
It seem at /srv/vendor/comphppuebla/dbal-fixtures/src/Database/DBALConnection.php:48, the line $schema->listTableDetails($table)->getPrimaryKeyColumns() now return the name of the column as array key, somethink like
array:1 [
"id" => Doctrine\DBAL\Schema\Column^ {#4217
#_type: Doctrine\DBAL\Types\IntegerType^ {#2116}
#_length: null
#_precision: 10
#_scale: 0
#_unsigned: true
#_fixed: false
#_notnull: true
#_default: null
#_autoincrement: true
#_platformOptions: []
#_columnDefinition: null
#_comment: null
#_customSchemaOptions: []
#_name: "id"
#_namespace: null
#_quoted: false
}
]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels