You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when you run doctrine:fixtures:load and there are no fixtures to load the command returns 1 together with an error message.
In our use-case, we have created a skeleton application that has defined CI/CD templates and pre-installed bundles like this one. One of the steps in our CI is running doctrine:fixtures:load which in new projects that do not have any fixtures yet causes our CI step to fail.
What do you think about one of the possible solutions:
add option to silence error on empty fixtures (--allow-empty or --silence-empty-error)
return warning instead of error when no fixtures to load
I can try to prepare a Pull Request when you see some viable solution.
The text was updated successfully, but these errors were encountered:
If I understand you correctly we would have to change our CI/CD scripts too and we don't want to do that. We want to keep them the same as the skeleton ones and they do run doctrine:fixtures:load.
Currently, when you run
doctrine:fixtures:load
and there are no fixtures to load the command returns1
together with an error message.In our use-case, we have created a skeleton application that has defined CI/CD templates and pre-installed bundles like this one. One of the steps in our CI is running
doctrine:fixtures:load
which in new projects that do not have any fixtures yet causes our CI step to fail.What do you think about one of the possible solutions:
--allow-empty
or--silence-empty-error
)I can try to prepare a Pull Request when you see some viable solution.
The text was updated successfully, but these errors were encountered: