Dmitriy Sazonov
Dmitriy Sazonov
``` TestAR::find()->select('foo')->test()->all(); // Will SELECT `foo`, `bar` TestAR::find()->test()->all(); // Will SELECT *, `bar` ``` What is the problem here? With `find()->select('foo')->test()` you define what you need to recieve. With `find()->test()`...
@MysteryDragon I can't see any opportynity to detect if select set contains all fields in `\yii\db\Query` because Query doesn't know about table schema.
We used `addSelect($columnn)` to build some kind of report. `$column` was the result of subquery. For example, thats how we get comments to post with likes, using eager loading (eager...