Last active
December 2, 2017 14:46
-
-
Save onmotion/40be2ea1bb754df0cb15b397bd270de7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dataProvider = new ActiveDataProvider([ | |
'query' => $query->select('client.*')->joinWith(['r_cli_tt.tt'])->addSelect('SUM(r_cli_tt_potential_sellers_cnt) as potentialsSum')->groupBy(['client_id']), | |
]); | |
и соответственно добавить potentialsSum в модель |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment