staabm / phpstan-dba

PHPStan based SQL static analysis and type inference for the database access layer
https://staabm.github.io/archive.html#phpstan-dba
MIT License
250 stars 17 forks source link

[WIP] Support for joins in count queries #568

Closed jakubvojacek closed 1 year ago

jakubvojacek commented 1 year ago

quite simple query with join does not correctly resolve $fromTable, testing whether I can fix that.

staabm commented 1 year ago

thank you for working on it.

watch out: I also work on it in https://github.com/staabm/phpstan-dba/pull/531

jakubvojacek commented 1 year ago

thank you for working on it. watch out: I also work on it in https://github.com/staabm/phpstan-dba/pull/531

was just a quick test, will try to do more this week and the week after next week (vacations). Will check out your PR, thanks for letting me know

staabm commented 1 year ago

really cool you are interessted in this topic and you play with the feature <3.

basic join support just landed. support for natural joins / cross joins is missing atm https://twitter.com/markusstaab/status/1635743847509553152