We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app:setup doesn't work with sqlite, I think because you can't send multiple sql statements to ->execute().
My quick hack fix:
if (true === isset($count['total']) && 0 == $count['total']) { foreach (explode("\n", $file) as $sqlStatement) { if ($sqlStatement) { $connection->executeQuery($sqlStatement); } } $output->writeln('<info>Feed data inserted</info>');
but really these shouldn't be sql statements, they should be simple Action entities.
$action = (new Action())->setTitle(..)->setReverse();
Even better would be to check if the action existed first, so that new actions could be added without resetting the database.
The text was updated successfully, but these errors were encountered:
I made a quick test, even the command bin/console doctrine:schema:create doesn't work with SQLite
bin/console doctrine:schema:create
Sorry, something went wrong.
No branches or pull requests
app:setup doesn't work with sqlite, I think because you can't send multiple sql statements to ->execute().
My quick hack fix:
but really these shouldn't be sql statements, they should be simple Action entities.
Even better would be to check if the action existed first, so that new actions could be added without resetting the database.
The text was updated successfully, but these errors were encountered: