-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
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
Using with doctrine/dbal #645
Comments
Did you setup a database server in CI and imported a db schema into a database? Could you reproduce your problem in a small example repository? |
No, but I manage that I don't need do that because I use cache from https://github.com/staabm/phpstan-dba/blob/main/docs/record-and-replay.md |
ok this means we can close here? |
So I need to setup db? What about this https://github.com/staabm/phpstan-dba/blob/main/docs/record-and-replay.md ? |
ohh I missunderstood your previous comment. record-and-replay can be used for cases when you really cannot setup a DB in CI. having a real db and a real schema might be more work, but is more accurate for the analysis - in case you managed a good dev process how you handle db migrations etc. |
For me works like you mentioned, but looks like just |
would be great if you would post a full example, which shows what does not work and what you expect |
I have simplified code.
When I run on local with db with all correct loaded schema, then I use When I run on CI without db, then I use I always run with bootstrap file from first message. |
I try to configure in project with
doctrine/dbal
. I create a bootstrap:An locally everything works fine. But when I run phpstan on CI, then I get many errors where I use
Doctrine\DBAL\Connection::delete
orDoctrine\DBAL\Connection::insert
The text was updated successfully, but these errors were encountered: